diff --git a/tests/test_asym_logit.py b/tests/test_asym_logit.py
index <HASH>..<HASH> 100644
--- a/tests/test_asym_logit.py
+++ b/tests/test_asym_logit.py
@@ -20,7 +20,7 @@ import pylogit.asym_logit as asym
 try:
     # in Python 3 range returns an iterator instead of list
     # to maintain backwards compatibility use "old" version of range
-    from past.builtins import xrange
+    from past.builtins import xrange, range
 except ImportError:
     pass
Added import of python2 compatible range function for testing.