diff options
author | Julian Taylor <juliantaylor108@gmail.com> | 2017-03-25 14:47:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-25 14:47:04 +0100 |
commit | ab49be1d5a6f1a7c51298a8fe46a9f43bb2bb33b (patch) | |
tree | 434f751384e02a2d386dda491527c50fed070625 /numpy/lib/tests/test_twodim_base.py | |
parent | a7ed83f6d9e5e8f5a024dfe2d42ad290d79422b1 (diff) | |
parent | 1dc20cba80660ee9f2b16e26c0d6e7f23bf9e08f (diff) | |
download | numpy-ab49be1d5a6f1a7c51298a8fe46a9f43bb2bb33b.tar.gz |
Merge pull request #8832 from eric-wieser/avoid-as-bytes
MAINT: Remove python <2.7,<3.3 string/unicode workarounds
Diffstat (limited to 'numpy/lib/tests/test_twodim_base.py')
-rw-r--r-- | numpy/lib/tests/test_twodim_base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_twodim_base.py b/numpy/lib/tests/test_twodim_base.py index 98b8aa39c..d57791e34 100644 --- a/numpy/lib/tests/test_twodim_base.py +++ b/numpy/lib/tests/test_twodim_base.py @@ -15,7 +15,6 @@ from numpy import ( ) import numpy as np -from numpy.compat import asbytes_nested def get_mat(n): @@ -91,7 +90,7 @@ class TestEye(TestCase): def test_strings(self): assert_equal(eye(2, 2, dtype='S3'), - asbytes_nested([['1', ''], ['', '1']])) + [[b'1', b''], [b'', b'1']]) def test_bool(self): assert_equal(eye(2, 2, dtype=bool), [[True, False], [False, True]]) |