changeset: 90025:33c4c01404cd parent: 90022:a90254be2da2 parent: 90024:831bd1a1cf6c user: Ned Deily date: Sat Mar 29 00:09:56 2014 -0700 files: Misc/NEWS description: Issue #21093: merge from 3.4 diff -r a90254be2da2 -r 33c4c01404cd Lib/ctypes/test/test_macholib.py --- a/Lib/ctypes/test/test_macholib.py Sat Mar 29 15:41:18 2014 +1000 +++ b/Lib/ctypes/test/test_macholib.py Sat Mar 29 00:09:56 2014 -0700 @@ -50,8 +50,11 @@ '/usr/lib/libSystem.B.dylib') result = find_lib('z') - self.assertTrue(result.startswith('/usr/lib/libz.1')) - self.assertTrue(result.endswith('.dylib')) + # Issue #21093: dyld default search path includes $HOME/lib and + # /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'), '/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit') diff -r a90254be2da2 -r 33c4c01404cd Misc/NEWS --- a/Misc/NEWS Sat Mar 29 15:41:18 2014 +1000 +++ b/Misc/NEWS Sat Mar 29 00:09:56 2014 -0700 @@ -159,6 +159,9 @@ - Issue #20668: asyncio tests no longer rely on tests.txt file. (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 -----------