mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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:
parent
6f34109384
commit
607bff1ebe
7 changed files with 29 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue