diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-20 13:31:26 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2011-03-20 13:31:26 (GMT) |
commit | 60c3c9f91820ee90c9ebc15addae15bbef17bd9b (patch) | |
tree | 5ef0c28d2fbf8cb02f856ca9c03496a45d99df8f /Lib/unittest | |
parent | 0123e055fa50c067fc66599694f2f1df3fe61b0e (diff) | |
download | cpython-60c3c9f91820ee90c9ebc15addae15bbef17bd9b.zip cpython-60c3c9f91820ee90c9ebc15addae15bbef17bd9b.tar.gz cpython-60c3c9f91820ee90c9ebc15addae15bbef17bd9b.tar.bz2 |
Save a copy of sys.warnoptions in test_program.
Diffstat (limited to 'Lib/unittest')
-rw-r--r-- | Lib/unittest/test/test_program.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/test/test_program.py b/Lib/unittest/test/test_program.py index a50a245..d5d0f5a 100644 --- a/Lib/unittest/test/test_program.py +++ b/Lib/unittest/test/test_program.py @@ -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 |