python setup.py test fails in python3.4 env
Issue #17
resolved
I get the following error msg multiple times in the output of python setup.py test
Traceback (most recent call last):
File "test/test_mat_aij.py", line 163, in testGetValuesCSR
for row in range(rstart, rend):
UnboundLocalError: local variable 'range' referenced before assignment
An easy fix is to remove the following lines from test_mat_aij.py
try: range = xrange
except NameError: pass
Have you thought about using the python six
package to support both python 2 and python 3?
Comments (2)
-
-
- changed status to resolved
- Log in to comment
Fixed: 42353a19f0b8498c90abfb39b7ed5ae9d4609ff8
PS: IMHO, depending on six for the testsuite is not worth it.