]> granicus.if.org Git - python/commitdiff
Issue #15364: Fix test_srcdir for the installed case.
authorNed Deily <nad@acm.org>
Sat, 28 Jul 2012 06:37:04 +0000 (23:37 -0700)
committerNed Deily <nad@acm.org>
Sat, 28 Jul 2012 06:37:04 +0000 (23:37 -0700)
Lib/distutils/tests/test_sysconfig.py
Lib/test/test_sysconfig.py

index 546bb721a4744f01560287989212557217e3b5fa..826ea4247d2436cc6f77b327224b89c7fb6ac80b 100644 (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
index 059e4c1af3dfad2f1f757b532e7c307ab78345a0..92193602f98ae072633f78702b24a84b91b17252 100644 (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