[Stackless] Regression tests in Stackless python 2.5
Carlos Eduardo de Paula
cedepaula at yahoo.com.br
Thu Sep 21 17:01:21 CEST 2006
I just installed Stackless 2.5 into my new Python 2.5 release, all stackless tests runs ok but I got some errors in the regrtests from Python.
Here are the results:
261 tests OK.
6 tests failed:
test_bsddb test_gettext test_mailbox test_pep352 test_platform
test_repr
52 tests skipped:
test__locale test_aepack test_al test_applesingle test_bsddb185
test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw
test_commands test_crypt test_curses test_dbm test_dl test_fcntl
test_fork1 test_gdbm test_gl test_grp test_imgfile test_ioctl
test_largefile test_linuxaudiodev test_macfs test_macostools
test_mhlib test_nis test_normalization test_openpty
test_ossaudiodev test_plistlib test_poll test_posix test_pty
test_pwd test_resource test_scriptpackages test_signal
test_socket_ssl test_socketserver test_sunaudiodev
test_threadsignals test_timeout test_urllib2net test_urllibnet
test_wait3 test_wait4 test_zipfile64
Those skips are all expected on win32.
Re-running failed tests in verbose mode
Re-running test 'test_bsddb' in verbose mode
======================================================================
FAIL: test_for_cursor_memleak (test.test_bsddb.TestBTree)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_bsddb.py", line 217, in test_for_c
ursor_memleak
self.assertEqual(nc1, nc4)
AssertionError: 0 != 1
======================================================================
FAIL: test_for_cursor_memleak (test.test_bsddb.TestHashTable)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_bsddb.py", line 217, in test_for_c
ursor_memleak
self.assertEqual(nc1, nc4)
AssertionError: 0 != 1
======================================================================
FAIL: test_for_cursor_memleak (test.test_bsddb.TestBTree_InMemory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_bsddb.py", line 217, in test_for_c
ursor_memleak
self.assertEqual(nc1, nc4)
AssertionError: 0 != 1
======================================================================
FAIL: test_for_cursor_memleak (test.test_bsddb.TestHashTable_InMemory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_bsddb.py", line 217, in test_for_c
ursor_memleak
self.assertEqual(nc1, nc4)
AssertionError: 0 != 1
======================================================================
FAIL: test_for_cursor_memleak (test.test_bsddb.TestBTree_InMemory_Truncate)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_bsddb.py", line 217, in test_for_c
ursor_memleak
self.assertEqual(nc1, nc4)
AssertionError: 0 != 1
----------------------------------------------------------------------
Ran 105 tests in 8.969s
FAILED (failures=5)
Re-running test 'test_gettext' in verbose mode
----------------------------------------------------------------------
Ran 28 tests in 1.203s
Re-running test 'test_mailbox' in verbose mode
======================================================================
ERROR: Test an empty maildir mailbox
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_mailbox.py", line 1627, in tearDow
n
os.rmdir(self._dir)
WindowsError: [Error 41] The directory is not empty: '@test'
======================================================================
ERROR: test_nonempty_maildir_both (test.test_mailbox.MaildirTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_mailbox.py", line 1615, in setUp
os.mkdir(self._dir)
WindowsError: [Error 17] Cannot create a file when that file already exists: '@t
est'
======================================================================
ERROR: test_nonempty_maildir_cur (test.test_mailbox.MaildirTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_mailbox.py", line 1615, in setUp
os.mkdir(self._dir)
WindowsError: [Error 17] Cannot create a file when that file already exists: '@t
est'
======================================================================
ERROR: test_nonempty_maildir_new (test.test_mailbox.MaildirTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_mailbox.py", line 1615, in setUp
os.mkdir(self._dir)
WindowsError: [Error 17] Cannot create a file when that file already exists: '@t
est'
======================================================================
ERROR: test_unix_mbox (test.test_mailbox.MaildirTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_mailbox.py", line 1615, in setUp
os.mkdir(self._dir)
WindowsError: [Error 17] Cannot create a file when that file already exists: '@t
est'
----------------------------------------------------------------------
Ran 263 tests in 11.219s
FAILED (errors=5)
test test_mailbox failed -- errors occurred; run in verbose mode for details
'test_mailbox' left behind directory '@test'
Re-running test 'test_pep352' in verbose mode
test_builtins_new_style (test.test_pep352.ExceptionClassTests) ... ok
test_inheritance (test.test_pep352.ExceptionClassTests) ... FAIL
test_interface_multi_arg (test.test_pep352.ExceptionClassTests) ... ok
test_interface_no_arg (test.test_pep352.ExceptionClassTests) ... ok
test_interface_single_arg (test.test_pep352.ExceptionClassTests) ... ok
test_catch_string (test.test_pep352.UsageTests) ... ok
test_raise_classic (test.test_pep352.UsageTests) ... ok
test_raise_new_style_non_exception (test.test_pep352.UsageTests) ... ok
test_raise_string (test.test_pep352.UsageTests) ... ok
======================================================================
FAIL: test_inheritance (test.test_pep352.ExceptionClassTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_pep352.py", line 73, in test_inher
itance
self.failUnlessEqual(len(exc_set), 0, "%s not accounted for" % exc_set)
AssertionError: set(['TaskletExit']) not accounted for
----------------------------------------------------------------------
Ran 9 tests in 0.000s
FAILED (failures=1)
test test_pep352 failed -- Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_pep352.py", line 73, in test_inher
itance
self.failUnlessEqual(len(exc_set), 0, "%s not accounted for" % exc_set)
AssertionError: set(['TaskletExit']) not accounted for
Re-running test 'test_platform' in verbose mode
======================================================================
ERROR: test_python_build (test.test_platform.PlatformTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_platform.py", line 24, in test_pyt
hon_build
res = platform.python_build()
File "C:\carlos\apps\Python25\lib\platform.py", line 1153, in python_build
return _sys_version()[1:3]
File "C:\carlos\apps\Python25\lib\platform.py", line 1117, in _sys_version
_sys_version_parser.match(sys.version).groups()
AttributeError: 'NoneType' object has no attribute 'groups'
======================================================================
ERROR: test_python_compiler (test.test_platform.PlatformTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\carlos\apps\Python25\lib\test\test_platform.py", line 27, in test_pyt
hon_compiler
res = platform.python_compiler()
File "C:\carlos\apps\Python25\lib\platform.py", line 1161, in python_compiler
return _sys_version()[3]
File "C:\carlos\apps\Python25\lib\platform.py", line 1117, in _sys_version
_sys_version_parser.match(sys.version).groups()
AttributeError: 'NoneType' object has no attribute 'groups'
----------------------------------------------------------------------
Ran 17 tests in 0.078s
FAILED (errors=2)
test test_platform failed -- errors occurred in test.test_platform.PlatformTest
Re-running test 'test_repr' in verbose mode
----------------------------------------------------------------------
Ran 12 tests in 0.000s
OK
test_builtin_function (test.test_repr.LongReprTest) ... ok
----------------------------------------------------------------------
Ran 7 tests in 0.406s
OK
I omitted the passed tests...
What I dont understand is why some tests have not passed the regrtest.py and passed in the rerun.
I ran the tests in the standard (stock) python DLL and got no errors.
Regards,
Carlos
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless
More information about the Stackless
mailing list