Kaydet (Commit) c420343c authored tarafından Ned Deily's avatar Ned Deily

Issue #21093: Prevent failures of ctypes test_macholib on OS X if a

copy of libz exists in $HOME/lib or /usr/local/lib.
üst 9aa00d1c
...@@ -50,8 +50,11 @@ class MachOTest(unittest.TestCase): ...@@ -50,8 +50,11 @@ class MachOTest(unittest.TestCase):
'/usr/lib/libSystem.B.dylib') '/usr/lib/libSystem.B.dylib')
result = find_lib('z') result = find_lib('z')
self.assertTrue(result.startswith('/usr/lib/libz.1')) # Issue #21093: dyld default search path includes $HOME/lib and
self.assertTrue(result.endswith('.dylib')) # /usr/local/lib before /usr/lib, which caused test failures if
# a local copy of libz exists in one of them. Now ignore the head
# of the path.
self.assertRegex(result, r".*/lib/libz\..*.*\.dylib")
self.assertEqual(find_lib('IOKit'), self.assertEqual(find_lib('IOKit'),
'/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit') '/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit')
......
...@@ -129,6 +129,9 @@ Tests ...@@ -129,6 +129,9 @@ Tests
- Issue #20668: asyncio tests no longer rely on tests.txt file. - Issue #20668: asyncio tests no longer rely on tests.txt file.
(Patch by Vajrasky Kok) (Patch by Vajrasky Kok)
- Issue #21093: Prevent failures of ctypes test_macholib on OS X if a
copy of libz exists in $HOME/lib or /usr/local/lib.
Tools/Demos Tools/Demos
----------- -----------
......
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