[Python-Dev] Whole bunch of test failures on OSX

skip at pobox.com skip at pobox.com
Mon Apr 3 00:59:44 CEST 2006


I'm not sure this is going to be all that helpful. If there's more I can do
to help track down these problems, let me know.
Last night I ran
 make test EXTRATESTOPTS='-R :: -uall -r'
on my Mac laptop after a fresh svn up. I wasn't ready for how long that
would run!
I got plenty of test failures:
 285 tests OK.
 12 tests failed:
 test_codecencodings_cn test_codecencodings_kr
 test_codecencodings_tw test_codecmaps_cn test_codecmaps_hk
 test_codecmaps_jp test_codecmaps_tw test_decimal test_difflib
 test_logging test_optparse test_warnings
 15 tests skipped:
 test_al test_cd test_cl test_dl test_gdbm test_gl test_imgfile
 test_linuxaudiodev test_locale test_nis test_ossaudiodev
 test_pep277 test_sunaudiodev test_winreg test_winsound
 Those skips are all expected on darwin.
The test_codecencodings_tw failure looks like this:
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 88, in test_customreplace_encode
 "test.xmlcharnamereplace")[0], sout)
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 74, in xmlcharnamereplace
 if ord(c) in codepoint2name:
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 260, in ord
 return _ord(c)
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 260, in ord
 return _ord(c)
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 260, in ord
 return _ord(c)
 ... many more at the same line ...
with "maximum recursion depth exceeded" at the bottom. Similar problem in
test_codecmaps_hk except the recursion was in _unichr():
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 299, in test_mapping_file
 unich = unichrs(data[1])
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 275, in <lambda>
 unichrs = lambda s: u''.join(map(unichr, map(eval, s.split('+'))))
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 253, in unichr
 return _unichr(v)
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 253, in unichr
 return _unichr(v)
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_multibytecodec_support.py", line 253, in unichr
 return _unichr(v)
 ...
The other codec-related failures looked the same to my casual eye.
The test_difflib error was an assertion failure involving a big-ass chunk of
HTML:
 test test_difflib failed -- Traceback (most recent call last):
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_difflib.py", line 145, in test_html_diff
 self.assertEqual(actual,expect)
 AssertionError: '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html>\n\n<head>\n <meta http-equiv="Content-Type"\n content="text/html; charset=ISO-8859-1" />\n <title></title>\n <style type="text/css">\n table.diff {font-family:Courier; border:medium;}\n .diff_header {background-color:#e0e0e0}\n td.diff_header {text-align:right}\n ...
The test_optparse failure:
 test test_optparse failed -- Traceback (most recent call last):
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_optparse.py", line 571, in test_float_default
 self.assertHelp(self.parser, expected_help)
 File "/Users/skip/src/python-svn/trunk/Lib/test/test_optparse.py", line 176, in assertHelp
 actual_help + '"\n')
 AssertionError: help text failure; expected:
 "usage: test [options]
 options:
 -h, --help show this help message and exit
 -p PROB, --prob=PROB blow up with probability PROB [default: 0.43]
 "; got:
 "usage: test [options]
 options:
 -h, --help show this help message and exit
 -p PROB, --prob=PROB blow up with probability PROB
 [default: 0.43]
 "
Test_logging crashed:
 test test_logging crashed -- <class 'exceptions.KeyError'>: <logging.StreamHandler instance at 0x2088478>
And though it didn't list test_bsddb3 as a failure, it got a bunch of
DBLockDeadlockError exceptions. Here are a couple examples:
 test_bsddb3
 Exception in thread reader 0:
 Traceback (most recent call last):
 File "/Users/skip/src/python-svn/trunk/Lib/threading.py", line 467, in __bootstrap
 self.run()
 File "/Users/skip/src/python-svn/trunk/Lib/threading.py", line 447, in run
 self.__target(*self.__args, **self.__kwargs)
 File "/Users/skip/src/python-svn/trunk/Lib/bsddb/test/test_thread.py", line 275, in readerThread
 rec = dbutils.DeadlockWrap(c.next, max_retries=10)
 File "/Users/skip/src/python-svn/trunk/Lib/bsddb/dbutils.py", line 62, in DeadlockWrap
 return function(*_args, **_kwargs)
 DBLockDeadlockError: (-30995, 'DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock')
 Exception in thread reader 3:
 Traceback (most recent call last):
 File "/Users/skip/src/python-svn/trunk/Lib/threading.py", line 467, in __bootstrap
 self.run()
 File "/Users/skip/src/python-svn/trunk/Lib/threading.py", line 447, in run
 self.__target(*self.__args, **self.__kwargs)
 File "/Users/skip/src/python-svn/trunk/Lib/bsddb/test/test_thread.py", line 275, in readerThread
 rec = dbutils.DeadlockWrap(c.next, max_retries=10)
 File "/Users/skip/src/python-svn/trunk/Lib/bsddb/dbutils.py", line 62, in DeadlockWrap
 return function(*_args, **_kwargs)
 DBLockDeadlockError: (-30995, 'DB_LOCK_DEADLOCK: Locker killed to resolve a deadlock')
 ...
For test_decimal it printed:
 test test_decimal failed -- errors occurred; run in verbose mode for details
but when I ran test_decimal manually it ran fine.
Same thing for test_warnings:
 test test_warnings failed -- errors occurred in test.test_warnings.TestModule
When I ran it manually it passed.
Skip


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /