mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +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'):
|
for arch in ('', 'x64'):
|
||||||
ret.append("virtualenv -p c:/Python%s%s/python.exe --clear %s%s%s" %
|
ret.append("virtualenv -p c:/Python%s%s/python.exe --clear %s%s%s" %
|
||||||
(py, arch, VIRT_BASE, py, arch))
|
(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)
|
return "\n".join(ret)
|
||||||
|
|
||||||
def run_script(params):
|
def run_script(params):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import subprocess, os, multiprocessing
|
import subprocess, os, multiprocessing, glob
|
||||||
|
|
||||||
from config import *
|
from config import *
|
||||||
|
|
||||||
|
@ -9,8 +9,11 @@ def test_one(params):
|
||||||
try:
|
try:
|
||||||
print ("Running: %s, %s" %params)
|
print ("Running: %s, %s" %params)
|
||||||
command = [r'%s\%s%s\Scripts\python.exe' % (VIRT_BASE, python, architecture),
|
command = [r'%s\%s%s\Scripts\python.exe' % (VIRT_BASE, python, architecture),
|
||||||
'Tests/run.py',
|
'test-installed.py',
|
||||||
'--installed']
|
'--processes=-0',
|
||||||
|
'--process-timeout=30',
|
||||||
|
]
|
||||||
|
command.extend(glob.glob('Tests/test*.py'))
|
||||||
proc = subprocess.Popen(command,
|
proc = subprocess.Popen(command,
|
||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE)
|
stdout=subprocess.PIPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user