summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-16 00:01:09 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-16 00:01:09 (GMT)
commit7d79948103ebe6922144ef81919c8b12c434cbb8 (patch)
tree916e43df4a0e702d2dd14f9e81932b6e6df43a9f /Lib/test/regrtest.py
parenta91a02a76d35bedb5eb9ed2b06c43c0250a872c8 (diff)
downloadcpython-7d79948103ebe6922144ef81919c8b12c434cbb8.zip
cpython-7d79948103ebe6922144ef81919c8b12c434cbb8.tar.gz
cpython-7d79948103ebe6922144ef81919c8b12c434cbb8.tar.bz2
It makes more sense to call resetwarnings() after every test runs than
to keep doing that in every test that wants to filter a warning.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 18decfe..8e8deae 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -55,6 +55,7 @@ import getopt
import traceback
import random
import StringIO
+import warnings
import test_support
@@ -322,6 +323,7 @@ def runtest(test, generate, verbose, quiet, testdir = None):
indirect_test()
finally:
sys.stdout = save_stdout
+ warnings.resetwarnings()
except (ImportError, test_support.TestSkipped), msg:
if not quiet:
print "test", test, "skipped --", msg