Ah, if the enum is unsigned and has the same size as unsigned long, this could happen. I pushed https://github.com/cython/cython/commit/d92a718a26c9354fbf35f31a17de5c069865a447 for future release.
On Tue, Jan 24, 2017 at 4:53 PM, Robert Bradshaw <rober...@gmail.com> wrote: > Disabling only works on full test suites, e.g. you'd have to disable all > of cpdef_enums. > > What kind of machine turns this into a long? > > On Tue, Jan 24, 2017 at 8:56 AM, Yaroslav Halchenko <li...@onerussian.com> > wrote: > >> Dear Cython gurus, >> >> How to skip this test? >> >> It is causing failures on i386: >> https://github.com/cython/cython/issues/1548 >> and I have tried to skip it, so my test running line now is >> >> set -e; for P in 2.7 3.5; do \ >> PYTHONPATH=`/bin/ls -d /build/cython-0.25.2/build/lib.*-$P` \ >> /usr/bin/python$P runtests.py --shard_count=16 \ >> --no-refnanny -v -v --exclude="(parallel|Debugger| >> annotate_html|numpy_test|verify_resolution_GH1533)" >> --work-dir=build/work-dir 2>&1; \ >> done >> >> NB numpy_test skip due to https://github.com/cython/cython/issues/1589 >> >> but the test still runs and fails: >> >> >> >> FAIL: verify_resolution_GH1533 (line 90) (cpdef_enums.__test__) >> Doctest: cpdef_enums.__test__.verify_resolution_GH1533 (line 90) >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File "/usr/lib/python2.7/doctest.py", line 2226, in runTest >> raise self.failureException(self.format_failure(new.getvalue())) >> AssertionError: Failed doctest test for >> cpdef_enums.__test__.verify_resolution_GH1533 >> (line 90) >> File >> "/build/cython-0.25.2/build/work-dir/15/run/c/cpdef_enums/cpdef_enums.so", >> line unknown line number, in verify_resolution_GH1533 (line 90) >> >> ---------------------------------------------------------------------- >> File >> "/build/cython-0.25.2/build/work-dir/15/run/c/cpdef_enums/cpdef_enums.so", >> line ?, in cpdef_enums.__test__.verify_resolution_GH1533 (line 90) >> Failed example: >> verify_resolution_GH1533() >> Expected: >> 3 >> Got: >> 3L >> >> >> ---------------------------------------------------------------------- >> Ran 676 tests in 247.426s >> >> FAILED (failures=1) >> >> >> >> quick reply would be appreciate -- running out of time to upload 0.25.2 >> into >> debian for stretch full freeze >> >> Cheers >> -- >> Yaroslav O. Halchenko >> Center for Open Neuroscience http://centerforopenneuroscience.org >> Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 >> Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 >> WWW: http://www.linkedin.com/in/yarik >> _______________________________________________ >> cython-devel mailing list >> cython-devel@python.org >> https://mail.python.org/mailman/listinfo/cython-devel >> > >
_______________________________________________ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel