[Python-Dev] various test failures - test_site, test_tempfile,
skip at pobox.com
Sun Jun 6 09:27:56 EDT 2004
I was making some simple changes to fileobject.c yesterday (checking file()
mode strings for validity) and started having test failures. After lots of
head scratching and changes to my code I concluded it couldn't be my code
and finally just ripped out the changes and ran with a fresh CVS checkout.
Sure enough, I got the same problem. On Mac OS X I get this output (debug
*** malloc: error for object 0x680b408: Pointer being reallocated was not allocated
test test_tempfile failed -- Traceback (most recent call last):
File "/Users/skip/tmp/python/dist/src/Lib/test/test_tempfile.py", line 155, in test_wanted_dirs
os.environ[envname] = os.path.abspath(envname)
File "/Users/skip/tmp/python/dist/src/Lib/os.py", line 445, in __setitem__
OSError: (0, 'Error')
make: *** [test] Bus error
This stuff passes with no complaint on Linux (Mandrake 8.1-ish) but I'm
having other problems there. Tests involving bsddb fail (I'm building with
Berkeley DB 3.3 - is that too old now?) with something like this:
make: *** [quicktest] Segmentation fault
On both Mac OS X and Linux (Mandrake 8.1-ish) test_site fails with:
test test_site failed -- Traceback (most recent call last):
File "/home/skip/tmp/python/dist/src/Lib/test/test_site.py", line 150, in test_sitepackages
self.fail("'site-packages' directory missing'")
AssertionError: 'site-packages' directory missing'
This seems like a problem with the test itself. It should be okay to run
the tests in the build directory without a site-packages directory.
I'm doing a little further investigation into the malloc problem on Mac OS X
using the debug stuff available in its malloc(3) implementation.
More information about the Python-Dev