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: Pyton 2.3.4 Make Test Fails on Mac OS X
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, dekiefer, jackjansen
Priority: low Keywords:

Created on 2004-06-10 23:42 by dekiefer, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg21124 - (view) Author: D. Evan Kiefer (dekiefer) Date: 2004-06-10 23:42
Under Mac OSX 10.3.4 with latest security update.
Power Mac G4 733MHz

Trying to install Zope 2.7.0 with Python 2.3.4.

I first used fink to install 2.3.4 but Zope could find module 'os' to 
import. 

I then followed the instructions at:
http://zope.org/Members/jens/docs/Document.2003-12-27.2431/
document_view to install Python with the default configure.

Unlike under fink, doing this allowed me to run 'make test'. It too 
noted import problems for 'os' and 'site'.

test_tempfile
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/Volumes/Spielen/Python-2.Lib/test/tf_inherit_check.py", 
line 6, in ?
    import os
ImportError: No module named os
test test_tempfile failed -- Traceback (most recent call last):
  File "/Volumes/Spielen/Python-2.Lib/test/test_tempfile.py", 
line 307, in test_noinherit
    self.failIf(retval > 0, "child process reports failure")
  File "/Volumes/Spielen/Python-2.Lib/unittest.py", line 274, in 
failIf
    if expr: raise self.failureException, msg
AssertionError: child process reports failure


test_atexit
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "@test.py", line 1, in ?
    import atexit
ImportError: No module named atexit
test test_atexit failed -- '' == "handler2 (7,) {'kw': 'abc'}\nhandler2 
() {}\nhandler1\n"
test_audioop

----------
test_poll skipped -- select.poll not defined -- skipping test_poll
test_popen
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
test_popen2


-------------------
229 tests OK.
2 tests failed:
    test_atexit test_tempfile
24 tests skipped:
    test_al test_bsddb3 test_cd test_cl test_curses test_dl
    test_email_codecs test_gl test_imgfile test_largefile
    test_linuxaudiodev test_locale test_nis test_normalization
    test_ossaudiodev test_pep277 test_poll test_socket_ssl
    test_socketserver test_sunaudiodev test_timeout test_urllibnet
    test_winreg test_winsound
Those skips are all expected on darwin.
make: *** [test] Error 1
deksmacintosh:3-> 
msg21125 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-06-17 21:31
Logged In: YES 
user_id=357491

Do you get these failures if you compile Python from scratch instead of 
using Fink?  How about running the tests directly?

I suspect the test_atexit failure is a Fink-specific issue and the 
test_tempfile failure was just a timing quirk since it has a threaded and 
that can make it sensitive to timing.
msg21126 - (view) Author: D. Evan Kiefer (dekiefer) Date: 2004-06-28 17:54
Logged In: YES 
user_id=318754

Do you get these failures if you compile Python from scratch
instead of using Fink?  How about running the tests directly?

See above, the second time I installed without fink and ran the tests 
directly. The errors are from 'make test' done without fink.
msg21127 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2004-06-28 21:12
Logged In: YES 
user_id=45365

My guess is that something in your environment is messing things up. 
Various of the tests that give the "import site failed" message use 
subprocesses.

What I tend to do to debug issues like this is create a new dummy user 
(I tend to use the short name "luser" and the long name "Bill Gates":-), 
unpack a fresh distribution under that account and try building.
msg21128 - (view) Author: D. Evan Kiefer (dekiefer) Date: 2004-06-28 22:16
Logged In: YES 
user_id=318754

Thanks Jack, I'll try that.
msg21129 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-08-07 19:11
Logged In: YES 
user_id=357491

OK, since we have not heard from dekiefer in over a month I am closing 
this bug.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40381
2004-06-10 23:42:11dekiefercreate