summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Manganiello <adamantike@users.noreply.github.com>2016-05-08 08:19:07 -0300
committerSybren A. Stüvel <sybren@stuvel.eu>2016-05-08 13:19:07 +0200
commit1369d748e9b557ed769c9456dc43ab3c0530663f (patch)
tree73687fb7dc65c7479353a353e619e603f44f1499 /tests
parent7e5854dc6f4c748ffcbff0066dbfef0a8bdbfbf6 (diff)
downloadrsa-git-1369d748e9b557ed769c9456dc43ab3c0530663f.tar.gz
xrange compatibility optimization for Python 2 (#69)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_compat.py2
-rw-r--r--tests/test_prime.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_compat.py b/tests/test_compat.py
index 74d6f53..2a58df5 100644
--- a/tests/test_compat.py
+++ b/tests/test_compat.py
@@ -18,7 +18,7 @@ import unittest
import struct
import sys
-from rsa._compat import is_bytes, byte, b
+from rsa._compat import b, byte, is_bytes, range
class TestByte(unittest.TestCase):
diff --git a/tests/test_prime.py b/tests/test_prime.py
index 75b80b3..f3bda9b 100644
--- a/tests/test_prime.py
+++ b/tests/test_prime.py
@@ -18,6 +18,7 @@
import unittest
+from rsa._compat import range
import rsa.prime
import rsa.randnum