the test suite now runs on ubuntu, hopefully also debian and other system

This commit is contained in:
Daniel Neuhäuser 2010-06-22 22:49:58 +02:00
parent 3002eb391f
commit 37db093428

View File

@ -11,13 +11,14 @@
"""
import sys
from os import path, chdir
from os import path, chdir, listdir
if sys.version_info >= (3,):
print('Copying and converting sources to build/lib/tests...')
from distutils.util import copydir_run_2to3
testroot = path.dirname(__file__) or '.'
newroot = path.join(testroot, path.pardir, 'build', 'lib', 'tests')
newroot = path.join(testroot, path.pardir, 'build')
newroot = path.join(newroot, listdir(newroot)[0], 'tests')
copydir_run_2to3(testroot, newroot)
# switch to the converted dir so nose tests the right tests
chdir(newroot)