summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_structmembers.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-04-18 23:31:33 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-04-18 23:31:33 (GMT)
commit607bff1ebe81e869697e228322da4c308e8753a5 (patch)
treeab9126adaba09e9c1cd436b1ca76c5ac3d67eb3c /Lib/test/test_structmembers.py
parent6f34109384f3a78d5f4f8bdd418a89caca19631e (diff)
downloadcpython-607bff1ebe81e869697e228322da4c308e8753a5.zip
cpython-607bff1ebe81e869697e228322da4c308e8753a5.tar.gz
cpython-607bff1ebe81e869697e228322da4c308e8753a5.tar.bz2
Some tests did not pass on repeated calls (regrtest -R::)
Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.
Diffstat (limited to 'Lib/test/test_structmembers.py')
-rw-r--r--Lib/test/test_structmembers.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_structmembers.py b/Lib/test/test_structmembers.py
index a59cfa9..6c1a947 100644
--- a/Lib/test/test_structmembers.py
+++ b/Lib/test/test_structmembers.py
@@ -101,12 +101,6 @@ class TestWarnings(unittest.TestCase):
def test_main(verbose=None):
- # Obscure hack so that this test passes after reloads or repeated calls
- # to test_main (regrtest -R).
- if '__warningregistry__' in globals():
- del globals()['__warningregistry__']
- if hasattr(sys, '__warningregistry__'):
- del sys.__warningregistry__
test_support.run_unittest(__name__)
if __name__ == "__main__":