]> granicus.if.org Git - python/commitdiff
Fix bug in test_tools that prevented building is separate directory.
authorNeil Schemenauer <nas@arctrix.com>
Wed, 27 Jun 2012 21:58:37 +0000 (15:58 -0600)
committerNeil Schemenauer <nas@arctrix.com>
Wed, 27 Jun 2012 21:58:37 +0000 (15:58 -0600)
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.

Lib/test/test_tools.py

index 564b747b95c2bbb0580b9a831bc7d6ede3efec4f..3b89178ad18bf47d6362314b32e8fd51302acd89 100644 (file)
@@ -19,7 +19,7 @@ if not sysconfig.is_python_build():
     # and run the tests in that case too?
     raise unittest.SkipTest('test irrelevant for an installed Python')
 
-srcdir = sysconfig.get_config_var('projectbase')
+srcdir = sysconfig.get_config_var('srcdir')
 basepath = os.path.join(os.getcwd(), srcdir, 'Tools')
 scriptsdir = os.path.join(basepath, 'scripts')