Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue6418] unittest.TestProgram change breaks nose

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jul 4, 2009, 1:27 PM

Post #1 of 7 (276 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose

New submission from Jason Pellerin <jpellerin [at] gmail>:

This changeset:

http://hg.python.org/cpython/rev/c3fb79d1c036

breaks nose, as it changes the behavior of unittest.TestProgram in a
non-backwards-compatible way. Previously, when called like:

TestProgram(testRunner=None)

self.testRunner would be None when runTests() was called. Now, it is
populated with the default TextTestRunner class in TestProgram.__init__.
nose expects self.testRunner to be None or a runner instance in
runTests(), and thus fails immediately with 2.6.3.

If initialization of self.testRunner could be deferred to runTests() as
in unitttest for 2.5 and earlier, that would be ideal for nose.

----------
components: Library (Lib)
messages: 90123
nosy: jpellerin
severity: normal
status: open
title: unittest.TestProgram change breaks nose
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 1:35 PM

Post #2 of 7 (265 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose [In reply to]

Michael Foord <michael [at] voidspace> added the comment:

This change was made to fix a regression in 2.6.
In 2.5 the default was None and someone (else) made the also backwards
incompatible change to make the default the TextTestRunner class. This
broke test suites (like setuptools for example) which expected to be
able to pass None in and get sensible default behaviour.

The change can't be reverted as it was a bugfix, but a different change
could be applied.

----------
nosy: +michael.foord

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2009, 6:27 PM

Post #3 of 7 (264 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose [In reply to]

Changes by Jason Pellerin <jpellerin [at] gmail>:


----------
keywords: +patch
Added file: http://bugs.python.org/file14452/6418.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 5, 2009, 8:17 AM

Post #4 of 7 (248 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose [In reply to]

Changes by Tarek Ziadé <ziade.tarek [at] gmail>:


----------
nosy: +tarek

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 13, 2009, 9:34 AM

Post #5 of 7 (211 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose [In reply to]

Michael Foord <michael [at] voidspace> added the comment:

Committed in revision 6418. Still needs fixing in trunk (note the patch
itself can't be applied as it is missing a couple of 'self's).

Having problems testing this fix without causing spurious output on stderr.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 13, 2009, 9:37 AM

Post #6 of 7 (211 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose [In reply to]

Michael Foord <michael [at] voidspace> added the comment:

Oops - I meant revision 73997 of course.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 14, 2009, 10:59 AM

Post #7 of 7 (213 views)
Permalink
[issue6418] unittest.TestProgram change breaks nose [In reply to]

Michael Foord <michael [at] voidspace> added the comment:

Committed to trunk in revision 74007.

----------
assignee: -> michael.foord
resolution: -> accepted
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue6418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.