[pypy-issue] [issue780] test_ll2ctypes.py -k test_arrayofstruct Error!

Christian Tismer tracker at bugs.pypy.org
Tue Jul 5 20:16:05 CEST 2011

New submission from Christian Tismer <tismer at stackless.com>:

This looks like a weird bug.

When running test_ll2ctypes without "-k" selection, all tests work.
With "-k -k test_arrayofstruct", this tests fails.

The second assert
    assert ac.contents.items[2].x == 102
fails. I debugged this and found that the array element returned
is always the first element.

Tested: (branch, os, python)
default, win32, python 2.6.2
default, osx64, python 2.6.1
win64 test, win32, python 2.6.2
win64 test, win64, python 2.7.2

Looks like something behaves wrong the first time, maybe
different behavior when initializing the type cache?

cheers - chris

messages: 2736
nosy: ctismer, pypy-issue
priority: critical
status: unread
title: test_ll2ctypes.py -k test_arrayofstruct Error!

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list