Kaydet (Commit) dde25c48 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Issue #19340: Fix test_sysconfig when Python is built with an empty prefix.

Patch by Sunny K.
üst 776b8880
...@@ -354,8 +354,10 @@ class TestSysConfig(unittest.TestCase): ...@@ -354,8 +354,10 @@ class TestSysConfig(unittest.TestCase):
self.assertTrue(os.path.exists(Python_h), Python_h) self.assertTrue(os.path.exists(Python_h), Python_h)
self.assertTrue(sysconfig._is_python_source_dir(srcdir)) self.assertTrue(sysconfig._is_python_source_dir(srcdir))
elif os.name == 'posix': elif os.name == 'posix':
self.assertEqual(os.path.dirname(sysconfig.get_makefile_filename()), makefile_dir = os.path.dirname(sysconfig.get_makefile_filename())
srcdir) # Issue #19340: srcdir has been realpath'ed already
makefile_dir = os.path.realpath(makefile_dir)
self.assertEqual(makefile_dir, srcdir)
def test_srcdir_independent_of_cwd(self): def test_srcdir_independent_of_cwd(self):
# srcdir should be independent of the current working directory # srcdir should be independent of the current working directory
......
...@@ -613,6 +613,7 @@ Sijin Joseph ...@@ -613,6 +613,7 @@ Sijin Joseph
Andreas Jung Andreas Jung
Tattoo Mabonzo K. Tattoo Mabonzo K.
Sarah K. Sarah K.
Sunny K
Bohuslav Kabrda Bohuslav Kabrda
Bob Kahn Bob Kahn
Kurt B. Kaiser Kurt B. Kaiser
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment