summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-07-28 06:37:04 (GMT)
committerNed Deily <nad@acm.org>2012-07-28 06:37:04 (GMT)
commit6c779ea55329947577119b8a7ea732f6d540d516 (patch)
tree3261fdba19b43912b898a63beb96711c46579d90 /Lib/test
parent9e4bfb6cb34c81123b7b8b374c429af7032dcd19 (diff)
downloadcpython-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.py3
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