mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +03:00
single threaded for profile-installed.py
This commit is contained in:
parent
e14e3593d9
commit
75dac32a0a
|
@ -21,14 +21,6 @@ if len(sys.argv) == 1:
|
||||||
# Make sure that nose doesn't muck with our paths.
|
# Make sure that nose doesn't muck with our paths.
|
||||||
if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv):
|
if ('--no-path-adjustment' not in sys.argv) and ('-P' not in sys.argv):
|
||||||
sys.argv.insert(1, '--no-path-adjustment')
|
sys.argv.insert(1, '--no-path-adjustment')
|
||||||
|
|
||||||
if 'NOSE_PROCESSES' not in os.environ:
|
|
||||||
for arg in sys.argv:
|
|
||||||
if '--processes' in arg:
|
|
||||||
break
|
|
||||||
else: # for
|
|
||||||
sys.argv.insert(1, '--processes=-1') # -1 == number of cores
|
|
||||||
sys.argv.insert(1, '--process-timeout=30')
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
profile.run("nose.main()", sort=2)
|
profile.run("nose.main()", sort=2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user