[Zope3-dev] MemoryError under ZopeX3 b2 unittests, on OpenBSD 3.5
kw
kw_odonian at yahoo.com
Wed Sep 1 11:40:58 EDT 2004
Has anyone seen an error like the one below, running
on python 2.3.4 on OpenBSD 3.5: when running make
check during install, there are some initial test
failures, and then a MemoryError crash. The
preceeding make step ran without a hitch. Any
insights/help would be appreciated, thanks,
bash-2.05b$ make check
/usr/local/bin/python install.py -q build
/usr/local/bin/python test.py -v
Running UNIT tests at level 1
Running UNIT tests from
/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386\
-2.3
(lots of dots....)
Failure in test test_RuntimeInfoView
(zope.app.applicationcontrol.browser.tests\
.test_runtimeinfoview.Test)
Traceback (most recent call last):
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/ap\
plicationcontrol/browser/tests/test_runtimeinfoview.py",
line 51, in test_Runti\
meInfoView
self.failUnless(assert_keys == test_keys)
File "/usr/local/lib/python2.3/unittest.py", line
278, in failUnless
if not expr: raise self.failureException, msg
AssertionError
........
Error in test test_PythonVersion
(zope.app.applicationcontrol.tests.test_runtim\
einfo.Test)
Traceback (most recent call last):
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/ap\
plicationcontrol/tests/test_runtimeinfo.py", line 90,
in test_PythonVersion
self.assertEqual(runtime_info.getPythonVersion(),
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/ap\
plicationcontrol/runtimeinfo.py", line 63, in
getPythonVersion
return unicode(sys.version,
self.getPreferredEncoding())
TypeError: unicode() argument 2 must be string, not
None
Error in test test_SystemPlatform
(zope.app.applicationcontrol.tests.test_runti\
meinfo.Test)
Traceback (most recent call last):
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/ap\
plicationcontrol/tests/test_runtimeinfo.py", line 99,
in test_SystemPlatform
self.assertEqual(runtime_info.getSystemPlatform(),
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/ap\
plicationcontrol/runtimeinfo.py", line 77, in
getSystemPlatform
return unicode(" ".join(info),
self.getPreferredEncoding())
TypeError: unicode() argument 2 must be string, not
None
(lots more dots...)
Traceback (most recent call last):
File "/web/software/ZopeX3-3.0.0b3/test.py", line
36, in ?
zope.app.tests.test.process_args(args)
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/te\
sts/test.py", line 1184, in process_args
bad = main(MODULE_FILTERS, TEST_FILTERS, LIBDIR)
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/te\
sts/test.py", line 862, in main
runner(files, test_filter, DEBUG)
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/te\
sts/test.py", line 795, in runner
r = runner.run(suite)
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/te\
sts/test.py", line 446, in run
return unittest.TextTestRunner.run(self, test)
File "/usr/local/lib/python2.3/unittest.py", line
658, in run
test(result)
File "/usr/local/lib/python2.3/unittest.py", line
389, in __call__
test(result)
File "/usr/local/lib/python2.3/unittest.py", line
389, in __call__
test(result)
File "/usr/local/lib/python2.3/unittest.py", line
389, in __call__
test(result)
File "/usr/local/lib/python2.3/unittest.py", line
236, in __call__
result.addError(self, self.__exc_info())
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/te\
sts/test.py", line 388, in addError
test, self.errors)
File
"/web/software/ZopeX3-3.0.0b3/build/lib.openbsd-3.5-i386-2.3/zope/app/te\
sts/test.py", line 343, in _print_traceback
tb = "".join(traceback.format_exception(*err))
File "/usr/local/lib/python2.3/traceback.py", line
140, in format_exception
list = list + format_tb(tb, limit)
File "/usr/local/lib/python2.3/traceback.py", line
75, in format_tb
return format_list(extract_tb(tb, limit))
File "/usr/local/lib/python2.3/traceback.py", line
99, in extract_tb
line = linecache.getline(filename, lineno)
File "/usr/local/lib/python2.3/linecache.py", line
14, in getline
lines = getlines(filename)
File "/usr/local/lib/python2.3/linecache.py", line
40, in getlines
return updatecache(filename)
File "/usr/local/lib/python2.3/linecache.py", line
93, in updatecache
lines = fp.readlines()
MemoryError
*** Error code 1
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
More information about the Zope3-dev
mailing list