summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-03-05 15:34:43 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-03-05 15:34:43 -0700
commit677d349c22dd5538dd4bb962df11814f23a46b35 (patch)
tree9ae95575aa1610fe8f47c76c3dd8c9adac0ee349
parent3f0f12ffeb202a414d81e45254a135c8e4c74690 (diff)
downloadnumpy-677d349c22dd5538dd4bb962df11814f23a46b35.tar.gz
BUG: Fix string in test for python 3k.
-rw-r--r--numpy/core/tests/test_regression.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 4d7ab05fd..24e70e92d 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -1547,7 +1547,7 @@ class TestRegression(TestCase):
def test_string_astype(self):
"""Ticket #1756 """
- s = '12345'
+ s = asbytes('12345')
a = np.array([s]*5)
for i in range(1,6):
a1 = np.array(a, "|S%d"%i)