We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb80248 commit f1f2876Copy full SHA for f1f2876
Lib/test/test_argparse.py
@@ -82,10 +82,10 @@ def test_skip_invalid_stdout(self):
82
83
class TestArgumentParserPickleable(unittest.TestCase):
84
85
- @mock.patch.dict(os.environ, {'NO_COLOR': 'true'})
+ @force_not_colorized
86
def test_pickle_roundtrip(self):
87
import pickle
88
- parser = argparse.ArgumentParser()
+ parser = argparse.ArgumentParser(exit_on_error=False)
89
parser.add_argument('--foo', type=int, default=42)
90
parser.add_argument('bar', nargs='?', default='baz')
91
# Try to pickle and unpickle the parser
0 commit comments