Some tests did not pass on repeated calls (regrtest -R::)

Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.
This commit is contained in:
Amaury Forgeot d'Arc 2008-04-18 23:31:33 +00:00
parent 6f34109384
commit 607bff1ebe
7 changed files with 29 additions and 9 deletions

View file

@ -35,6 +35,10 @@ class FrozenTests(unittest.TestCase):
self.assertEquals(stdout.getvalue(),
'Hello world...\nHello world...\nHello world...\n')
del sys.modules['__hello__']
del sys.modules['__phello__']
del sys.modules['__phello__.spam']
def test_main():
run_unittest(FrozenTests)