This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ctypes unit test fails (test_macholib.py) under MacOS 10.4.7
Type: behavior Stage: test needed
Components: ctypes, macOS, Tests Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: ajaksu2, jackjansen, ned.deily, njdibfm, reedobrien, robrien, ronaldoussoren
Priority: low Keywords:

Created on 2006-08-21 17:59 by njdibfm, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (11)
msg29590 - (view) Author: M. J. Fromberger (njdibfm) Date: 2006-08-21 17:59
While building 2.5rc1 under MacOS 10.4.7, one of the ctypes module 
unit tests fails:

% ./python.exe -V
Python 2.5c1 (r25c1:51426, Aug 21 2006, 11:30:05) 
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin

% uname -a
Darwin chrysophylax 8.7.0 Darwin Kernel Version 8.7.0: Fri May 26 
15:20:53 PDT 2006; root:xnu-792.6.76.obj~1/RELEASE_PPC Power 
Macintosh powerpc

Output report:
===========================================
===========================
FAIL: test_find (ctypes.test.test_macholib.MachOTest)
------------------------------------------------------------
----------
Traceback (most recent call last):
  File "/usr/local/src/python2.5/Lib/ctypes/test/test_macholib.py", line 
55, in test_find
    self.failUnless(result.startswith('/usr/lib/libz.1'))
AssertionError

------------------------------------------------------------
----------
Ran 287 tests in 0.933s

FAILED (failures=1)
Traceback (most recent call last):
  File "Lib/test/test_ctypes.py", line 12, in <module>
    test_main()
  File "Lib/test/test_ctypes.py", line 9, in test_main
    run_suite(unittest.TestSuite(suites))
  File "/usr/local/src/python2.5/Lib/test/test_support.py", line 426, in 
run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "/usr/local/src/python2.5/Lib/ctypes/test/test_macholib.py", line 
55, in test_find
    self.failUnless(result.startswith('/usr/lib/libz.1'))
AssertionError


msg29591 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2006-08-21 21:10
Logged In: YES 
user_id=45365

Ronald: just guesing that you know more about this than I do...
msg29592 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2006-10-08 18:10
Logged In: YES 
user_id=580910

This is a rather annoying, but shallow, failure. Dlopen on osx is quite touchy 
about the flags you use to open a shared library.

Anyway, all tests pass on the trunk and 2.5 branch, I guess this was fixed before 
2.5 was released. I have had an e-mail exchange with Thomas Heller about a 
simular issue and he has checked in a fixed for that before 2.5 was released.\

I'm therefore closing this issue.
msg29593 - (view) Author: reedobrien (reedobrien) Date: 2006-10-09 17:41
Logged In: YES 
user_id=995094

As of 2006-10-9 I still get this error compiling on 
OS X 10.4.8
Python 2.5 (r25:51908, Oct  9 2006, 11:15:40) 

test_ctypes
test test_ctypes failed -- Traceback (most recent call last):
  File
"/Users/robrien/src/Python-2.5/Lib/ctypes/test/test_macholib.py",
line 55, in test_find
    self.failUnless(result.startswith('/usr/lib/libz.1'))
AssertionError


msg29594 - (view) Author: reedobrien (reedobrien) Date: 2006-10-09 17:41
Logged In: YES 
user_id=995094

As of 2006-10-9 I still get this error compiling on 
OS X 10.4.8
Python 2.5 (r25:51908, Oct  9 2006, 11:15:40) 

test_ctypes
test test_ctypes failed -- Traceback (most recent call last):
  File
"/Users/robrien/src/Python-2.5/Lib/ctypes/test/test_macholib.py",
line 55, in test_find
    self.failUnless(result.startswith('/usr/lib/libz.1'))
AssertionError


msg84477 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2009-03-30 03:22
reedobrien: can you still reproduce the problem?

I'll close this issue unless we can confirm it's still present.
msg84545 - (view) Author: Reed O'Brien (robrien) Date: 2009-03-30 13:39
I am no longer using OSX 10.4.x, but this issue appears fixed in 2.5.4
and 2.6.1 on OSX 10.5.6

I have no reason for this to stay open
msg85010 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2009-04-01 13:57
Setting issue back to "open". I'm going to install a 10.4 PPC test machine 
over the weekend to try to reproduce the problem there.  

Issue5413 might be related to this one, that one also seems to be about 
some ctypes code that doesn't work on a PPC system (10.5 server in that 
case).
msg114816 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-08-24 20:17
Can this now be closed?
msg122015 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-11-21 23:11
Verified that the ctypes test_macholib tests in current Python 2.7, 2.6.6, and even 2.5.3 run without failure on OS X 10.4.11 PPC.
msg215113 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-03-29 03:35
FYI: The analysis in Issue21093 suggests a probable failure cause: a local copy of libz in either $HOME/lib or /usr/local/lib.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43867
2014-03-29 03:35:11ned.deilysetmessages: + msg215113
2010-11-21 23:11:50ned.deilysetstatus: open -> closed

messages: + msg122015
resolution: out of date
nosy: + ned.deily, - BreamoreBoy
2010-08-24 20:17:50BreamoreBoysetnosy: + BreamoreBoy
messages: + msg114816
2009-04-01 13:57:41ronaldoussorensetstatus: pending -> open

messages: + msg85010
2009-03-30 13:39:50robriensetnosy: + robrien
messages: + msg84545
2009-03-30 03:22:56ajaksu2setstatus: open -> pending
priority: normal -> low
type: behavior

components: + Tests, ctypes
versions: + Python 2.6, - Python 2.5
nosy: + ajaksu2

messages: + msg84477
stage: test needed
2006-08-21 17:59:36njdibfmcreate