Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ctypes unit test fails (test_macholib.py) under MacOS 10.4.7 #43867

Closed
njdibfm mannequin opened this issue Aug 21, 2006 · 11 comments
Closed

ctypes unit test fails (test_macholib.py) under MacOS 10.4.7 #43867

njdibfm mannequin opened this issue Aug 21, 2006 · 11 comments
Assignees
Labels
OS-mac tests Tests in the Lib/test dir topic-ctypes type-bug An unexpected behavior, bug, or error

Comments

@njdibfm
Copy link
Mannequin

njdibfm mannequin commented Aug 21, 2006

BPO 1544102
Nosy @jackjansen, @ronaldoussoren, @devdanzin, @ned-deily

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/ronaldoussoren'
closed_at = <Date 2010-11-21.23:11:50.110>
created_at = <Date 2006-08-21.17:59:36.000>
labels = ['OS-mac', 'ctypes', 'type-bug', 'tests']
title = 'ctypes unit test fails (test_macholib.py) under MacOS 10.4.7'
updated_at = <Date 2014-03-29.03:35:11.484>
user = 'https://bugs.python.org/njdibfm'

bugs.python.org fields:

activity = <Date 2014-03-29.03:35:11.484>
actor = 'ned.deily'
assignee = 'ronaldoussoren'
closed = True
closed_date = <Date 2010-11-21.23:11:50.110>
closer = 'ned.deily'
components = ['macOS', 'Tests', 'ctypes']
creation = <Date 2006-08-21.17:59:36.000>
creator = 'njdibfm'
dependencies = []
files = []
hgrepos = []
issue_num = 1544102
keywords = []
message_count = 11.0
messages = ['29590', '29591', '29592', '29593', '29594', '84477', '84545', '85010', '114816', '122015', '215113']
nosy_count = 7.0
nosy_names = ['jackjansen', 'ronaldoussoren', 'njdibfm', 'reedobrien', 'ajaksu2', 'robrien', 'ned.deily']
pr_nums = []
priority = 'low'
resolution = 'out of date'
stage = 'test needed'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue1544102'
versions = ['Python 2.6']

@njdibfm
Copy link
Mannequin Author

njdibfm mannequin commented Aug 21, 2006

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

@njdibfm njdibfm mannequin assigned ronaldoussoren Aug 21, 2006
@njdibfm njdibfm mannequin added the OS-mac label Aug 21, 2006
@njdibfm njdibfm mannequin assigned ronaldoussoren Aug 21, 2006
@njdibfm njdibfm mannequin added the OS-mac label Aug 21, 2006
@jackjansen
Copy link
Member

Logged In: YES
user_id=45365

Ronald: just guesing that you know more about this than I do...

@ronaldoussoren
Copy link
Contributor

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.

@reedobrien
Copy link
Mannequin

reedobrien mannequin commented Oct 9, 2006

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

1 similar comment
@reedobrien
Copy link
Mannequin

reedobrien mannequin commented Oct 9, 2006

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

@devdanzin
Copy link
Mannequin

devdanzin mannequin commented Mar 30, 2009

reedobrien: can you still reproduce the problem?

I'll close this issue unless we can confirm it's still present.

@devdanzin devdanzin mannequin added tests Tests in the Lib/test dir topic-ctypes type-bug An unexpected behavior, bug, or error labels Mar 30, 2009
@robrien
Copy link
Mannequin

robrien mannequin commented Mar 30, 2009

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

@ronaldoussoren
Copy link
Contributor

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.

bpo-5413 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).

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Aug 24, 2010

Can this now be closed?

@ned-deily
Copy link
Member

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.

@ned-deily
Copy link
Member

FYI: The analysis in bpo-21093 suggests a probable failure cause: a local copy of libz in either $HOME/lib or /usr/local/lib.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-mac tests Tests in the Lib/test dir topic-ctypes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants