On Wed, 23 Nov 2011 11:14:04 +0100, Tomasz Rybak <[email protected]> wrote: I still have this problem in current git > 937f3996f0598cda5a1923ad2baebd0916e43c48 > > ============================= test session starts > ============================== > platform linux2 -- Python 2.7.2 -- pytest-1.3.4 > test path 1: test_array.py > > test_array.py E > > ==================================== ERRORS > ==================================== > ERROR collecting /usr/src/cuda/pyopencl/pyopencl-2011.1.2 > +git20111122/test/test_array.py > test_array.py:669: in <module> > > register_dtype(mmc_dtype, "minmax_collector") > /usr/lib/python2.7/dist-packages/pyopencl/compyte/dtypes.py:50: in > register_dtype > > % (dtype, DTYPE_TO_NAME[dtype], ", ".join(c_names))) > E RuntimeError: dtype '[('cur_min', '<i4'), ('cur_max', > '<i4'), ('pad', '<i4')]' already registered (as 'minmax_collector', new > names 'minmax_collector') > =========================== 1 error in 0.22 seconds > ============================
Oh. Looks like Pytest < 2.0 executes the test file multiple times. Fine, should be fixed in git now, too. Andreas
pgpxHOikWOd1O.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
