{"issue":{"created_at":"2011-12-14T16:04:39Z","state":"closed","updated_at":"2011-12-14T16:04:40Z","user":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"<b>What steps will reproduce the problem?</b>\n1. Run a test that uses nose.plugins.doctests.run\n\n<b>What is the expected output? What do you see instead?</b>\n\nExpect: a warning referencing the source line that uses the run() function\nGet: a warning referencing the line of the run() function itself\n\n\n<b>What version of the product are you using? On what operating system?</b>\n\nhttp://python-nose.googlecode.com/svn/branches/0.10.0-stable revision 358\n\n\n<b>Please provide any additional information below.</b>\n\nFix is to add stacklevel arg to warnins.warn.  I haven't checked for\nsimilar problems elsewhere.\n\nIndex: nose/plugins/doctests.py\n===================================================================\n--- nose/plugins/doctests.py    (revision 358)\n+++ nose/plugins/doctests.py    (working copy)\n@@ -235,6 +235,7 @@\n     \"\"\"\n     import warnings\n     warnings.warn(\"run() has been moved to nose.plugins.plugintest. Please \"\n-                  \"update your imports.\", category=DeprecationWarning)\n+                  \"update your imports.\", category=DeprecationWarning,\n+                  stacklevel=2)\n     from nose.plugins.plugintest import run\n     run(*arg, **kw)\n\n\nGoogle Code Info:\nIssue #: 108\nAuthor: j...@pobox.com\nCreated On: 2007-09-29T14:20:08.000Z\nClosed On: 2007-10-01T14:58:33.000Z","assignee":{"gravatar_id":"86e49052bd9a5fb3eabfd7368b68bbb7","id":34519,"url":"https://api.github.com/users/jpellerin","login":"jpellerin","avatar_url":"https://secure.gravatar.com/avatar/86e49052bd9a5fb3eabfd7368b68bbb7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2553580,"labels":[],"number":230,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"warning referencing wrong line of source code","html_url":"https://github.com/nose-devs/nose/issues/230","closed_at":"2011-12-14T16:04:39Z","url":"https://api.github.com/repos/nose-devs/nose/issues/230","milestone":null},"action":"closed"}