From 6c779ea55329947577119b8a7ea732f6d540d516 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Fri, 27 Jul 2012 23:37:04 -0700 Subject: Issue #15364: Fix test_srcdir for the installed case. --- Lib/distutils/tests/test_sysconfig.py | 3 ++- Lib/test/test_sysconfig.py | 3 ++- 2 files changed, 4 insertions(+), 2 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 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 -- cgit v0.12