Skip to content

Commit be2bf61

Browse files
committed
remove test that fail on CPython
1 parent a0db9f7 commit be2bf61

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

extra_tests/snippets/stdlib_array.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def test_array_frombytes():
101101

102102
test_str = '🌉abc🌐def🌉🌐'
103103
u = array('u', test_str)
104-
assert u.__reduce_ex__(1)[1][1] == list(test_str)
105-
assert str(loads(dumps(u, 1))) == f"array('u', '{test_str}')"
106-
assert loads(dumps(u, 1)) == loads(dumps(u, 3))
104+
# skip as 2 bytes character enviroment with CPython is failing the test
105+
if u.itemsize >= 4:
106+
assert u.__reduce_ex__(1)[1][1] == list(test_str)
107+
assert loads(dumps(u, 1)) == loads(dumps(u, 3))

0 commit comments

Comments
 (0)