summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/tests/test_type_check.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_type_check.py b/numpy/lib/tests/test_type_check.py
index 751392fef..888c60420 100644
--- a/numpy/lib/tests/test_type_check.py
+++ b/numpy/lib/tests/test_type_check.py
@@ -1,6 +1,7 @@
from numpy.testing import *
from numpy.lib import *
from numpy.core import *
+from numpy.compat import asbytes
def assert_all(x):
assert(all(x)), x
@@ -379,7 +380,7 @@ class TestDateTimeData:
def test_basic(self):
a = array(['1980-03-23'], dtype=datetime64)
- assert_equal(datetime_data(a.dtype), ('us', 1, 1, 1))
+ assert_equal(datetime_data(a.dtype), (asbytes('us'), 1, 1, 1))
if __name__ == "__main__":