File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 29
29
30
30
if args .no_pep8 :
31
31
default_test_modules .remove ('matplotlib.tests.test_coding_standards' )
32
- sys .argv .remove ('--no-pep8' )
33
32
elif args .pep8 :
34
33
default_test_modules [:] = ['matplotlib.tests.test_coding_standards' ]
35
- sys .argv .remove ('--pep8' )
36
34
if args .no_network :
37
35
from matplotlib .testing import disable_internet
38
36
disable_internet .turn_off_internet ()
39
37
extra_args .extend (['-a' , '!network' ])
40
- sys .argv .remove ('--no-network' )
41
38
if args .j :
42
39
extra_args .extend ([
43
40
'--processes={}' .format (args .j ),
44
41
'--process-timeout=300'
45
42
])
46
- sys .argv .pop (sys .argv .index ('-j' ) + 1 )
47
- sys .argv .remove ('-j' )
48
43
49
44
print ('Python byte-compilation optimization level: %d' % sys .flags .optimize )
50
45
51
- success = test (argv = sys .argv + extra_args , switch_backend_warn = False )
46
+ success = test (argv = sys .argv [ 0 : 1 ] + extra_args , switch_backend_warn = False )
52
47
sys .exit (not success )
You can’t perform that action at this time.
0 commit comments