diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-05-08 16:34:51 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-05-08 16:34:51 +0000 |
commit | befa26016d18d20d054f65885361dae31dc9cdf6 (patch) | |
tree | a0b0fa4ed542d388bb6328bbfab74893cf243601 | |
parent | 75f99ab7dcc846c58a088a9233fb9af28aef0b4a (diff) | |
download | numpy-befa26016d18d20d054f65885361dae31dc9cdf6.tar.gz |
BUG: lib: remember in a test that datetime specifiers are bytes strings
-rw-r--r-- | numpy/lib/tests/test_type_check.py | 3 |
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__": |