Message179521
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). |
|
Date |
User |
Action |
Args |
2013-01-10 05:00:41 | ezio.melotti | set | recipients:
+ ezio.melotti, brett.cannon, python-dev, berker.peksag, zach.ware |
2013-01-10 05:00:41 | ezio.melotti | set | messageid: <1357794041.56.0.30638801243.issue16905@psf.upfronthosting.co.za> |
2013-01-10 05:00:41 | ezio.melotti | link | issue16905 messages |
2013-01-10 05:00:40 | ezio.melotti | create | |
|