diff options
author | Ned Deily <nad@acm.org> | 2012-07-28 06:37:04 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-07-28 06:37:04 (GMT) |
commit | 6c779ea55329947577119b8a7ea732f6d540d516 (patch) | |
tree | 3261fdba19b43912b898a63beb96711c46579d90 /Lib/distutils | |
parent | 9e4bfb6cb34c81123b7b8b374c429af7032dcd19 (diff) | |
download | cpython-6c779ea55329947577119b8a7ea732f6d540d516.zip cpython-6c779ea55329947577119b8a7ea732f6d540d516.tar.gz cpython-6c779ea55329947577119b8a7ea732f6d540d516.tar.bz2 |
Issue #15364: Fix test_srcdir for the installed case.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_sysconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py index 546bb72..826ea42 100644 --- a/Lib/distutils/tests/test_sysconfig.py +++ b/Lib/distutils/tests/test_sysconfig.py @@ -67,7 +67,8 @@ class SysconfigTestCase(support.EnvironGuard, self.assertTrue(os.path.exists(Python_h), Python_h) self.assertTrue(sysconfig._is_python_source_dir(srcdir)) elif os.name == 'posix': - self.assertEqual(sysconfig.get_makefile_filename(), srcdir) + self.assertEqual(os.path.dirname(sysconfig.get_makefile_filename()), + srcdir) def test_srcdir_independent_of_cwd(self): # srcdir should be independent of the current working directory |