File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 4444 - PANDAS=
4545 - NPROC=2
4646 - TEST_ARGS=--no-pep8
47- - NOSE_ARGS="--processes= $NPROC --process-timeout=300 "
47+ - NOSE_ARGS="-j $NPROC"
4848 - PYTEST_ARGS="-ra --timeout=300 --durations=25 --cov-report= --cov=lib" # -n $NPROC
4949 - PYTHON_ARGS=
5050 - DELETE_FONT_CACHE=
Original file line number Diff line number Diff line change 2828 disable_internet .turn_off_internet ()
2929 extra_args .extend (['-a' , '!network' ])
3030 sys .argv .remove ('--no-network' )
31+ if '-j' in sys .argv :
32+ nproc = sys .argv [sys .argv .index ('-j' ) + 1 ]
33+ extra_args .extend ([
34+ '--processes={}' .format (int (nproc )),
35+ '--process-timeout=300'
36+ ])
37+ sys .argv .remove ('-j' )
38+ sys .argv .remove (nproc )
3139
3240 print ('Python byte-compilation optimization level: %d' % sys .flags .optimize )
3341
You can’t perform that action at this time.
0 commit comments