Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7f29efe

Browse files
committed
Fix passthrough args like —with-coverage
1 parent 76be64a commit 7f29efe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎tests.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
if __name__ == '__main__':
1717
from matplotlib import default_test_modules, test
1818

19-
extra_args = []
20-
2119
parser = argparse.ArgumentParser(add_help=False)
2220
parser.add_argument('--no-pep8', action='store_true',
2321
help='Run all tests except PEP8 testing')
@@ -27,7 +25,7 @@
2725
help='Run tests without network connection')
2826
parser.add_argument('-j', type=int,
2927
help='Shortcut for specifying number of test processes')
30-
args= parser.parse_args()
28+
args, extra_args= parser.parse_known_args()
3129

3230
if args.no_pep8:
3331
default_test_modules.remove('matplotlib.tests.test_coding_standards')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /