mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Copy converted tests to build/lib/tests not build/lib/test
This commit is contained in:
parent
2737ec4dc9
commit
bade03c824
@ -14,10 +14,10 @@ import sys
|
||||
from os import path, chdir
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
print('Copying and converting sources to build/lib/test...')
|
||||
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', 'test')
|
||||
newroot = path.join(testroot, path.pardir, 'build', 'lib', 'tests')
|
||||
copydir_run_2to3(testroot, newroot)
|
||||
# switch to the converted dir so nose tests the right tests
|
||||
chdir(newroot)
|
||||
|
Loading…
Reference in New Issue
Block a user