This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_sys.Sizeof fails on win64
Type: Stage:
Components: Tests Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: schuppenies Nosy List: amaury.forgeotdarc, benjamin.peterson, schuppenies
Priority: critical Keywords: patch

Created on 2008-09-13 13:35 by amaury.forgeotdarc, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_sys.patch schuppenies, 2008-09-14 02:21 patch against r66458.
Messages (4)
msg73181 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-09-13 13:35
the "AMD64 W2k8 3.0" buildbot always fail test_sys:

...
    check(range(66000), size(h + '3l'))
...
AssertionError: wrong size for <class 'range'>: got 56, expected 48

The previous line of the test is:
    check(range(1), size(h + '3P'))
(win64 is the only platform where 'P' has a different size than 'l')
Why are there two versions of the structure? There is only one range 
object.

I suggest to replace the failing line with:
    check(range(66000), size(h + '3P'))
to properly reflect the three PyObject* of the structure.
msg73205 - (view) Author: Robert Schuppenies (schuppenies) * (Python committer) Date: 2008-09-14 02:21
You are right, it should be '3P'. When merging to py3k I changed the
previous line, but not the one causing trouble.
msg73226 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-14 15:56
Looks good to me.
msg73293 - (view) Author: Robert Schuppenies (schuppenies) * (Python committer) Date: 2008-09-16 07:54
Fixed in r66480.
History
Date User Action Args
2022-04-11 14:56:39adminsetgithub: 48109
2008-09-16 07:54:18schuppeniessetstatus: open -> closed
resolution: fixed
messages: + msg73293
2008-09-14 15:56:57benjamin.petersonsetkeywords: - needs review
nosy: + benjamin.peterson
messages: + msg73226
2008-09-14 02:21:59schuppeniessetfiles: + test_sys.patch
keywords: + patch
messages: + msg73205
2008-09-13 17:34:18benjamin.petersonsetassignee: schuppenies
nosy: + schuppenies
2008-09-13 13:35:49amaury.forgeotdarccreate