[issue12757] undefined name in doctest.py

2012-03-21 Thread R. David Murray
R. David Murray added the comment: Since nobody really cares about this issue :), I went ahead and applied the patch that at least avoids the tracebacks. Someone can open a new bug about the duplicated message if they really care. -- resolution: -> fixed stage: test needed -> commit

[issue12757] undefined name in doctest.py

2012-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64f1b8ad9214 by R David Murray in branch '3.2': #12757: Make doctest skipping in -OO mode work with unittest/regrtest -v http://hg.python.org/cpython/rev/64f1b8ad9214 New changeset ff7957aa01a1 by R David Murray in branch 'default': Merge #12757: M

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: Oh, in case anyone is wondering, the fix for -OO test runs was originally made because the unladen swallow folks ran the test suite that way. (I think someone else wanted it too, but I don't remember who). It's broken again, so I doubt anyone is actually d

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: OK, ./python -OO -m test test_json will trigger it. Updated fix attached. I'm not completely happy with it, though, since it prints the 'skipping test from module XXX' twice, and I don't know why (some unittest thing I'm not getting right, doubtless).

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12757] undefined name in doctest.py

2012-03-17 Thread R. David Murray
R. David Murray added the comment: The patch was actually by Brian Curtin, before he got commit privs :). Attached is a fix. I don't know what t.py has to do with the issue, though. I'm experimenting to see if I can trigger the bug before I apply the fix. -- keywords: +patch stage

[issue12757] undefined name in doctest.py

2011-08-18 Thread Michele OrrĂ¹
Michele OrrĂ¹ added the comment: It is possible to retrieve the current module using _normalize_module(None), or instead use the test name (dt_test.name) just like in DocTestCase.shortDescription. Since there is no doc about it, IMHO we should use unittest's standard as guideline, which is:

[issue12757] undefined name in doctest.py

2011-08-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12757] undefined name in doctest.py

2011-08-16 Thread Georg Brandl
New submission from Georg Brandl : doctest.py, line 2274 (in 2.7): def shortDescription(self): return "Skipping tests from %s" % module.__name__ "module" is not defined here. Assigning to David since he last changed this line. Test script attached. -- assignee: r.david.mur