mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
works with nose/unittest
This commit is contained in:
parent
b14e3daea1
commit
9c6a9172c0
|
@ -12,6 +12,11 @@ def setup_vms():
|
|||
for arch in ('', 'x64'):
|
||||
ret.append("virtualenv -p c:/Python%s%s/python.exe --clear %s%s%s" %
|
||||
(py, arch, VIRT_BASE, py, arch))
|
||||
ret.append("%s%s%s\Scripts\pip.exe install nose" %
|
||||
(VIRT_BASE, py, arch))
|
||||
if py == '26':
|
||||
ret.append("%s%s%s\Scripts\pip.exe install unittest2" %
|
||||
(VIRT_BASE, py, arch))
|
||||
return "\n".join(ret)
|
||||
|
||||
def run_script(params):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess, os, multiprocessing
|
||||
import subprocess, os, multiprocessing, glob
|
||||
|
||||
from config import *
|
||||
|
||||
|
@ -9,8 +9,11 @@ def test_one(params):
|
|||
try:
|
||||
print ("Running: %s, %s" %params)
|
||||
command = [r'%s\%s%s\Scripts\python.exe' % (VIRT_BASE, python, architecture),
|
||||
'Tests/run.py',
|
||||
'--installed']
|
||||
'test-installed.py',
|
||||
'--processes=-0',
|
||||
'--process-timeout=30',
|
||||
]
|
||||
command.extend(glob.glob('Tests/test*.py'))
|
||||
proc = subprocess.Popen(command,
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE)
|
||||
|
|
Loading…
Reference in New Issue
Block a user