Issue #15364: Fix test_srcdir for the installed case.

This commit is contained in:
Ned Deily 2012-07-27 23:37:04 -07:00
parent 9e4bfb6cb3
commit 6c779ea553
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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