summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-05-08 16:34:51 +0000
committerPauli Virtanen <pav@iki.fi>2010-05-08 16:34:51 +0000
commitbefa26016d18d20d054f65885361dae31dc9cdf6 (patch)
treea0b0fa4ed542d388bb6328bbfab74893cf243601 /numpy/lib
parent75f99ab7dcc846c58a088a9233fb9af28aef0b4a (diff)
downloadnumpy-befa26016d18d20d054f65885361dae31dc9cdf6.tar.gz
BUG: lib: remember in a test that datetime specifiers are bytes strings
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__":