Commit 60c3c9f9 authored by Ezio Melotti's avatar Ezio Melotti

Save a copy of sys.warnoptions in test_program.

parent 0123e055
......@@ -189,7 +189,7 @@ class TestCommandLineArgs(unittest.TestCase):
class FakeTP(unittest.TestProgram):
def parseArgs(self, *args, **kw): pass
def runTests(self, *args, **kw): pass
warnoptions = sys.warnoptions
warnoptions = sys.warnoptions[:]
try:
sys.warnoptions[:] = []
# no warn options, no arg -> default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment