Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76b931b

Browse files
committed
Fix bug in test_tools that prevented building is separate directory.
Use 'srcdir' from sysconfig instead of 'projectbase' to build a path to the Tools directory. 'projectbase' is the path of the build directory, not the source directory.
1 parent faae3ad commit 76b931b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# and run the tests in that case too?
2020
raise unittest.SkipTest('test irrelevant for an installed Python')
2121

22-
srcdir = sysconfig.get_config_var('projectbase')
22+
srcdir = sysconfig.get_config_var('srcdir')
2323
basepath = os.path.join(os.getcwd(), srcdir, 'Tools')
2424
scriptsdir = os.path.join(basepath, 'scripts')
2525

0 commit comments

Comments
 (0)