This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients berker.peksag, brett.cannon, ezio.melotti, python-dev, zach.ware
Date 2013-01-10.05:00:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357794041.56.0.30638801243.issue16905@psf.upfronthosting.co.za>
In-reply-to
Content
Fixed, thanks for the patch!
However I had to change a couple of things:
1) test_main contained c/py_warnings.onceregistry.clear(), and removing that breaks when running the test twice in a row.  I now added it to setUpModule, and that seems to be called both when the tests are run via regrtest and also when they are run via unittest.
2) Since the onceregistry wasn't cleared at the end of the tests, I also added a tearDownModule to take care of it.
3) I reorganized a bit the inheritance trees of the classes because they were inconsistent.  Now all the tests use BaseTest -> TestFoo(BaseTest) -> C/PyTestFoo(TestFoo, Unittest).  Previously some of the tests used BaseTest | TestFoo -> C/PyTestFoo(BaseTest, TestFoo, Unittest).
History
Date User Action Args
2013-01-10 05:00:41ezio.melottisetrecipients: + ezio.melotti, brett.cannon, python-dev, berker.peksag, zach.ware
2013-01-10 05:00:41ezio.melottisetmessageid: <1357794041.56.0.30638801243.issue16905@psf.upfronthosting.co.za>
2013-01-10 05:00:41ezio.melottilinkissue16905 messages
2013-01-10 05:00:40ezio.melotticreate