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
3ac86653
Commit
3ac86653
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
0913bff8
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 @
3ac86653
...
...
@@ -52,8 +52,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
.
assertRegexpMatches
(
result
,
r".*/lib/libz\
..*.*
\.dylib"
)
self
.
assertEqual
(
find_lib
(
'IOKit'
),
'/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit'
)
...
...
Misc/NEWS
View file @
3ac86653
...
...
@@ -336,6 +336,9 @@ Tests
redirect
of
http
://
www
.
python
.
org
/
to
https
://
www
.
python
.
org
:
use
http
://
www
.
example
.
com
instead
.
-
Issue
#
21093
:
Prevent
failures
of
ctypes
test_macholib
on
OS
X
if
a
copy
of
libz
exists
in
$
HOME
/
lib
or
/
usr
/
local
/
lib
.
Documentation
-------------
...
...
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