Issue1077302
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.
Created on 2004-12-02 04:24 by webperf, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | ||||
---|---|---|---|---|
File name | Uploaded | Description | Edit | |
mkalias_test_init_check.diff | brett.cannon, 2004-12-04 20:04 | Patch test_macostools:test_mkalias_relative when sys.prefix non-existent |
Messages (11) | |||
---|---|---|---|
msg23521 - (view) | Author: Ian Holsman (webperf) | Date: 2004-12-02 04:24 | |
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 |
|||
msg23522 - (view) | Author: Brett Cannon (brett.cannon) * | Date: 2004-12-03 04:23 | |
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. |
|||
msg23523 - (view) | Author: Brett Cannon (brett.cannon) * | Date: 2004-12-03 04:45 | |
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``? |
|||
msg23524 - (view) | Author: Jurjen N.E. Bos (jneb) * | Date: 2004-12-03 10:21 | |
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 |
|||
msg23525 - (view) | Author: Marc-Andre Lemburg (lemburg) * | Date: 2004-12-03 10:30 | |
Logged In: YES user_id=38388 Jurjen, can you put some more context with that ? What does test_locale have to do with Unicode ? |
|||
msg23526 - (view) | Author: Ian Holsman (webperf) | Date: 2004-12-03 10:46 | |
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 |
|||
msg23527 - (view) | Author: Brett Cannon (brett.cannon) * | Date: 2004-12-03 22:23 | |
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? |
|||
msg23528 - (view) | Author: Ian Holsman (webperf) | Date: 2004-12-04 09:37 | |
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 |
|||
msg23529 - (view) | Author: Brett Cannon (brett.cannon) * | Date: 2004-12-04 20:04 | |
Logged In: YES user_id=357491 Aha! That missing directory is the problem. If you read the docs on what macostools.mkalias does is it creates a Finder shortcut for a location. Well, it fails because it can't make a shortcut to a non-existent location. OK, I have uploaded a patch that basically just checks for sys.prefix's existence; if it is missing the test just returns without running. I figured creating the directory would be the improper thing to do since ``make install`` will handle that and use specific permissions I didn't want to override by having the test create it. If you can, Ian, apply the patch and let me know if it fixes the issue. |
|||
msg23530 - (view) | Author: Ian Holsman (webperf) | Date: 2004-12-05 10:05 | |
Logged In: YES user_id=5209 your patch did the trick Thanks Brett! |
|||
msg23531 - (view) | Author: Brett Cannon (brett.cannon) * | Date: 2004-12-06 06:28 | |
Logged In: YES user_id=357491 OK, fixed in HEAD as rev. 1.6, 2.4 as rev. 1.5.18.1, and 2.3 as rev. 1.5.14.1 (damn that is a lot of branches). Thanks for helping out with this, Ian. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:08 | admin | set | github: 41274 |
2004-12-02 04:24:33 | webperf | create |