summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
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/distutils/tests
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/distutils/tests')
-rw-r--r--Lib/distutils/tests/test_sysconfig.py3
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