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

Skip to content

Commit 01beb69

Browse files
committed
backport from the trunk, to fix test_tools with srcdir != builddir
changeset: 77827:c23b442b5d5e user: Antoine Pitrou <[email protected]> date: Thu Jun 28 01:20:26 2012 +0200 summary: Avoid using scrdir, it's broken. changeset: 77826:f0e58e778215 user: Neil Schemenauer <[email protected]> date: Wed Jun 27 15:58:37 2012 -0600 summary: Fix bug in test_tools that prevented building is separate directory.
1 parent b517596 commit 01beb69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
# and run the tests in that case too?
1919
raise unittest.SkipTest('test irrelevant for an installed Python')
2020

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

2525

0 commit comments

Comments
 (0)