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/test | |
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/test')
-rw-r--r-- | Lib/test/test_sysconfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 059e4c1..9219360 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -354,7 +354,8 @@ class TestSysConfig(unittest.TestCase): 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 |