10000 Do not test binary mode of numpy.fromstring for recent numpy version · serge-sans-paille/pythran@c01d422 · GitHub
[go: up one dir, main page]

Skip to content

Commit c01d422

Browse files
Do not test binary mode of numpy.fromstring for recent numpy version
It's no longer supported as of numpy 2.3, see https://numpy.org/devdocs/release/2.3.0-notes.html and numpy/numpy#28254 Fix #2322
1 parent 2847f56 commit c01d422

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythran/tests/test_numpy_func0.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,11 @@ def test_fromfile5(self):
553553
finally:
554554
os.remove(temp_name)
6A9B 555555

556+
@unittest.skipIf(np_version > version.Version("2.2"), reason="np.fromstring no longer supports binary mode")
556557
def test_fromstring0(self):
557558
self.run_test("def np_fromstring0(a): from numpy import fromstring, uint8 ; return fromstring(a, uint8)", '\x01\x02', np_fromstring0=[str])
558559

560+
@unittest.skipIf(np_version > version.Version("2.2"), reason="np.fromstring no longer supports binary mode")
559561
def test_fromstring1(self):
560562
self.run_test("def np_fromstring1(a): from numpy import fromstring, uint8 ; a = '\x01\x02\x03\x04' ; return fromstring(a, uint8,3)", '\x01\x02\x03\x04', np_fromstring1=[str])
561563

0 commit comments

Comments
 (0)
0