Skip to content

Commit 1df6d84

Browse files
committed
Fix Python 3 incompatibility.
1 parent e968329 commit 1df6d84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/numpy/dtype.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import dtype_ext
99
import unittest
1010
import numpy
11+
import sys
12+
if (sys.version_info.major >= 3):
13+
long = int
1114

1215
class DtypeTestCase(unittest.TestCase):
1316

0 commit comments

Comments
 (0)