diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-02-14 18:08:00 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-02-14 18:08:00 -0700 |
commit | 33337281067bb1253f737b707fc783f6a6455e04 (patch) | |
tree | fd441ffa93602d84c7bbe25b6499570e12491088 /numpy/f2py | |
parent | 792d1aeaa58bd8b7ff2688cc7dbf406bc1828b22 (diff) | |
parent | 2facd5cbdcaa08b61270c0c0760a39cd03acc007 (diff) | |
download | numpy-33337281067bb1253f737b707fc783f6a6455e04.tar.gz |
Merge pull request #4257 from juliantaylor/tostring-depr
ENH: add tobytes and stop using tostring in documentation
Diffstat (limited to 'numpy/f2py')
-rw-r--r-- | numpy/f2py/tests/test_array_from_pyobj.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/f2py/tests/test_array_from_pyobj.py b/numpy/f2py/tests/test_array_from_pyobj.py index 09d613293..3a148e72c 100644 --- a/numpy/f2py/tests/test_array_from_pyobj.py +++ b/numpy/f2py/tests/test_array_from_pyobj.py @@ -227,7 +227,8 @@ class Array(object): assert_(self.arr_attr[2]==self.pyarr_attr[2]) # dimensions if self.arr_attr[1]<=1: assert_(self.arr_attr[3]==self.pyarr_attr[3],\ - repr((self.arr_attr[3], self.pyarr_attr[3], self.arr.tostring(), self.pyarr.tostring()))) # strides + repr((self.arr_attr[3], self.pyarr_attr[3], + self.arr.tobytes(), self.pyarr.tobytes()))) # strides assert_(self.arr_attr[5][-2:]==self.pyarr_attr[5][-2:],\ repr((self.arr_attr[5], self.pyarr_attr[5]))) # descr assert_(self.arr_attr[6]==self.pyarr_attr[6],\ |