Save a copy of sys.warnoptions in test_program.
This commit is contained in:
parent
0123e055fa
commit
60c3c9f918
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue