Skip to content

Commit f1f2876

Browse files
mauvilsajohnslavik
andauthored
Apply suggestions from code review
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
1 parent eb80248 commit f1f2876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_argparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ def test_skip_invalid_stdout(self):
8282

8383
class TestArgumentParserPickleable(unittest.TestCase):
8484

85-
@mock.patch.dict(os.environ, {'NO_COLOR': 'true'})
85+
@force_not_colorized
8686
def test_pickle_roundtrip(self):
8787
import pickle
88-
parser = argparse.ArgumentParser()
88+
parser = argparse.ArgumentParser(exit_on_error=False)
8989
parser.add_argument('--foo', type=int, default=42)
9090
parser.add_argument('bar', nargs='?', default='baz')
9191
# Try to pickle and unpickle the parser

0 commit comments

Comments
 (0)