python setup.py test fails in python3.4 env

Issue #17 resolved
Thomas Hisch created an issue

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)

  1. Log in to comment