-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_get_raw_tables_view fails on Python 2.7.2 #868
Comments
Oh balls. Will investigate. I think the issue may be old/new style buffers in CPython??? I was examining how to efficiently pass these to Cython as memory views and hit upon a similar issue (to do with read only buffers). |
Although that's rather intriguing, as NB: $ python --version
Python 2.7.8 |
This also breaks Python 2.6, but I guess we're not aiming for 2.6 anymore. Traceback (most recent call last):
File "khmer/.tox/py26/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "khmer/tests/test_counting_hash.py", line 117, in test_get_raw_tables_view
memv = memoryview(tab)
NameError: global name 'memoryview' is not defined |
Mmmh, not good. I'll add a fix for @luizirber's observation. |
I haven't been able to find any python bugs/changes that indicate this is a python problem, but that may be my poor google skills. |
@luizirber any chance you could post your tox.ini? or even check it in, if that's ok. |
I didn't make a PR because it needs more polishing, for now I'm using something that works but is also wrong (the ideal would be moving parts from the Makefile here, and then calling tox on the Makefile) [tox]
envlist=py26,py27
[testenv]
commands=
make install-dependencies
make clean
make test |
Note, further investigation suggests that it is a problem in Python 2.7.2 but not Python 2.7.6. |
Interesingly, while testing on another machine (supercomputer using ICC), I got this:
I.e, zlib.h has a similar typedef for Byte. Using |
#869 fixed this, AFAICT |
c.f. #671
The text was updated successfully, but these errors were encountered: