mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Issue #19340: Fix test_sysconfig when Python is built with an empty prefix.
Patch by Sunny K.
This commit is contained in:
commit
3d3e1ba8ac
2 changed files with 5 additions and 2 deletions
|
@ -352,8 +352,10 @@ 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(os.path.dirname(sysconfig.get_makefile_filename()),
|
||||
srcdir)
|
||||
makefile_dir = os.path.dirname(sysconfig.get_makefile_filename())
|
||||
# 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):
|
||||
# srcdir should be independent of the current working directory
|
||||
|
|
|
@ -630,6 +630,7 @@ Sijin Joseph
|
|||
Andreas Jung
|
||||
Tattoo Mabonzo K.
|
||||
Sarah K.
|
||||
Sunny K
|
||||
Bohuslav Kabrda
|
||||
Alexey Kachayev
|
||||
Bob Kahn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue