[ python-Bugs-1077302 ] test_macostools failure on OS X
SourceForge.net
noreply at sourceforge.net
Sat Dec 4 10:37:07 CET 2004
Bugs item #1077302, was opened at 2004-12-02 15:24
Message generated for change (Comment added) made by webperf
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1077302&group_id=5470
Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Ian Holsman (webperf)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_macostools failure on OS X
Initial Comment:
hi.. I'm a newbie on this stuff.. just trying to
install the latest & greatest and have come up with
this issue
$ uname -a
Darwin dyn-130-194-244-92.its.monash.edu.au 7.6.0
Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT
2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC Power
Macintosh powerpc
^^10.3.6 Powerbook G4 1.5ghz box
$ ./configure --prefix=/ex --enable-toolbox-glue
--enable-framework
$ make
...
$ make test
...
test test__locale failed -- Traceback (most recent call
last):
File "/python/Python-2.4/Lib/test/test__locale.py",
line 43, in test_lc_numeric
"%s != %s (%s); "
AssertionError: , != . (decimal_point); supposed to be
fr_FR, set to fr_FR
test_aepack
...
test_locale
test_locale skipped -- Locale support on MacOSX is
minimal and cannot be tested
test_logging
test_long
test_long_future
test_longexp
test_macfs
test_macostools
test test_macostools failed -- Traceback (most recent
call last):
File
"/python/Python-2.4/Lib/test/test_macostools.py", line
78, in test_mkalias_relative
macostools.mkalias(test_support.TESTFN, TESTFN2,
sys.prefix)
File "/python/Python-2.4/Lib/plat-mac/macostools.py",
line 39, in mkalias
relativefsr = File.FSRef(relative)
Error: (-43, 'File not found')
test_macpath
----------------------------------------------------------------------
>Comment By: Ian Holsman (webperf)
Date: 2004-12-04 20:37
Message:
Logged In: YES
user_id=5209
Python 2.4 (#1, Dec 2 2004, 11:53:05)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1671)] on darwin
Type "help", "copyright", "credits" or "license" for more
information.
>>> import sys
>>> print sys.prefix
/Library/Frameworks/Python.framework/Versions/2.4
This directory doesn't exist. the make test uses
DYLD_FRAMEWORK_PATH
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2004-12-04 09:23
Message:
Logged In: YES
user_id=357491
The test_shutil failure has already been reported; bug #1076467 and it
seems to have to do with running as root.
As for the test_macostools failure, lets take this one step at a time.
What is the value for sys.prefix? Does that directory exist on your
machine when you run the test?
----------------------------------------------------------------------
Comment By: Ian Holsman (webperf)
Date: 2004-12-03 21:46
Message:
Logged In: YES
user_id=5209
when running the tests as root it fails 3 tests ;(
3 tests failed:
test__locale test_macostools test_shutil
32 tests skipped:
test_al test_bsddb test_bsddb3 test_cd test_cl
test_codecmaps_cn
test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr
test_codecmaps_tw test_curses test_dl test_gdbm 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_tcl
test_timeout test_urllib2net test_urllibnet test_winreg
test_winsound
1 skip unexpected on darwin:
test_tcl
test_shutil
test test_shutil failed -- Traceback (most recent call last):
File "/python/Python-2.4/Lib/test/test_shutil.py", line
34, in test_on_error
self.assertEqual(self.errorState, 2)
AssertionError: 0 != 2
test_signal
----------------------------------------------------------------------
Comment By: M.-A. Lemburg (lemburg)
Date: 2004-12-03 21:30
Message:
Logged In: YES
user_id=38388
Jurjen, can you put some more context with that ?
What does test_locale have to do with Unicode ?
----------------------------------------------------------------------
Comment By: Jurjen N.E. Bos (jneb)
Date: 2004-12-03 21:21
Message:
Logged In: YES
user_id=446428
Yep, I have met this too.
It has to do with the uniccodeobject.py, that does not want
HAVE_USABLE_WCHAR_T without HAVE_WCHAR_H (sorry if I got the
names slightly wrong).
This is the case on the Mac, where WCHAR_T is defined in another file,
and WCHAR_H does not exist.
Who can fix unicodeobject.h?
Thanks,
Jurjen
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2004-12-03 15:45
Message:
Logged In: YES
user_id=357491
OK, I have no problem with the test failing. What happens if you execute
using sudo; ``sudo make test``?
----------------------------------------------------------------------
Comment By: Brett Cannon (bcannon)
Date: 2004-12-03 15:23
Message:
Logged In: YES
user_id=357491
The test__locale failure is known about (OS X does some funky stuff with
C's locale library).
As for the test_macostools failure, I will need to recompile with --enable-
toolbox-glue to see if I get the failure as well.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1077302&group_id=5470
More information about the Python-bugs-list
mailing list