summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-03-20 13:31:26 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-03-20 13:31:26 (GMT)
commit60c3c9f91820ee90c9ebc15addae15bbef17bd9b (patch)
tree5ef0c28d2fbf8cb02f856ca9c03496a45d99df8f /Lib
parent0123e055fa50c067fc66599694f2f1df3fe61b0e (diff)
downloadcpython-60c3c9f91820ee90c9ebc15addae15bbef17bd9b.zip
cpython-60c3c9f91820ee90c9ebc15addae15bbef17bd9b.tar.gz
cpython-60c3c9f91820ee90c9ebc15addae15bbef17bd9b.tar.bz2
Save a copy of sys.warnoptions in test_program.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/unittest/test/test_program.py2
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