summaryrefslogtreecommitdiff
path: root/tests/test_errcodes.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_errcodes.py')
-rwxr-xr-xtests/test_errcodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_errcodes.py b/tests/test_errcodes.py
index 6775d83..5ce2cef 100755
--- a/tests/test_errcodes.py
+++ b/tests/test_errcodes.py
@@ -23,7 +23,7 @@
# License for more details.
import unittest
-from .testutils import ConnectingTestCase, slow
+from .testutils import ConnectingTestCase, slow, reload
try:
reload
@@ -52,7 +52,7 @@ class ErrocodeTests(ConnectingTestCase):
except Exception as e:
errs.append(e)
- for __ in xrange(MAX_CYCLES):
+ for __ in range(MAX_CYCLES):
reload(errorcodes)
(t1, t2) = (Thread(target=f), Thread(target=f))
(t1.start(), t2.start())