summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings.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_warnings.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_warnings.py')
-rw-r--r--Lib/test/test_warnings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_warnings.py b/Lib/test/test_warnings.py
index fb6aabb..9fca080 100644
--- a/Lib/test/test_warnings.py
+++ b/Lib/test/test_warnings.py
@@ -391,6 +391,8 @@ class PyWarningsDisplayTests(BaseTest, WarningsDisplayTests):
def test_main():
+ py_warnings.onceregistry.clear()
+ c_warnings.onceregistry.clear()
test_support.run_unittest(CFilterTests,
PyFilterTests,
CWarnTests,