[New-bugs-announce] [issue3147] tests for sys.getsizeof fail on win64
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Jun 20 00:43:46 CEST 2008
New submission from Amaury Forgeot d'Arc <amauryfa at gmail.com>:
the buildbot "AMD64 W2k8 trunk" systematically fails with the messages:
======================================================================
FAIL: test_specialtypes (test.test_sys.SizeofTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"S:\buildbots\python.x64\trunk.nelson-win64\build\lib\test\test_sys.py",
line 534, in test_specialtypes
self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p))
File
"S:\buildbots\python.x64\trunk.nelson-win64\build\lib\test\test_sys.py",
line 431, in check_sizeof
self.assertEqual(result, size, msg + str(size))
AssertionError: wrong size for <type 'dict'>: got 272, expected 224
======================================================================
FAIL: test_standardtypes (test.test_sys.SizeofTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"S:\buildbots\python.x64\trunk.nelson-win64\build\lib\test\test_sys.py",
line 455, in test_standardtypes
self.check_sizeof(True, h + l)
File
"S:\buildbots\python.x64\trunk.nelson-win64\build\lib\test\test_sys.py",
line 431, in check_sizeof
self.assertEqual(result, size, msg + str(size))
AssertionError: wrong size for <type 'bool'>: got 40, expected 32
It seems that this platform is special: sizeof(long)==4 and
sizeof(size_t)==8
----------
assignee: schuppenies
components: Interpreter Core
messages: 68429
nosy: amaury.forgeotdarc, schuppenies
severity: normal
status: open
title: tests for sys.getsizeof fail on win64
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3147>
_______________________________________
More information about the New-bugs-announce
mailing list