mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
the test suite now runs on ubuntu, hopefully also debian and other system
This commit is contained in:
parent
3002eb391f
commit
37db093428
@ -11,13 +11,14 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from os import path, chdir
|
from os import path, chdir, listdir
|
||||||
|
|
||||||
if sys.version_info >= (3,):
|
if sys.version_info >= (3,):
|
||||||
print('Copying and converting sources to build/lib/tests...')
|
print('Copying and converting sources to build/lib/tests...')
|
||||||
from distutils.util import copydir_run_2to3
|
from distutils.util import copydir_run_2to3
|
||||||
testroot = path.dirname(__file__) or '.'
|
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)
|
copydir_run_2to3(testroot, newroot)
|
||||||
# switch to the converted dir so nose tests the right tests
|
# switch to the converted dir so nose tests the right tests
|
||||||
chdir(newroot)
|
chdir(newroot)
|
||||||
|
Loading…
Reference in New Issue
Block a user