Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c420343c
Commit
c420343c
authored
Mar 29, 2014
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21093: Prevent failures of ctypes test_macholib on OS X if a
copy of libz exists in $HOME/lib or /usr/local/lib.
parent
9aa00d1c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Lib/ctypes/test/test_macholib.py
Lib/ctypes/test/test_macholib.py
+5
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/ctypes/test/test_macholib.py
View file @
c420343c
...
...
@@ -50,8 +50,11 @@ class MachOTest(unittest.TestCase):
'/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'
)
...
...
Misc/NEWS
View file @
c420343c
...
...
@@ -129,6 +129,9 @@ Tests
- 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
-----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment