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 259fa8e commit 84bc110Copy full SHA for 84bc110
1 file changed
Lib/test/test_argparse.py
@@ -85,7 +85,8 @@ def test_invalid_file_only(self):
85
parser.print_usage,
86
parser.print_help,
87
):
88
- self.assertRaises(ValueError, func, "invalid file")
+ with self.assertRaises(ValueError):
89
+ func(file="invalid file")
90
91
def test_valid_file_invalid_stdout(self):
92
parser = argparse.ArgumentParser()
0 commit comments