Skip to content

Commit 28876d3

Browse files
committed
tests/float/byte*_construct: Skip on missing array module.
1 parent 499ea8b commit 28876d3

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

tests/float/bytearray_construct.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# test construction of bytearray from array with float type
22

3-
from array import array
3+
try:
4+
from array import array
5+
except ImportError:
6+
import sys
7+
print("SKIP")
8+
sys.exit()
49

510
print(bytearray(array('f', [1, 2.3])))

tests/float/bytes_construct.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# test construction of bytearray from array with float type
22

3-
from array import array
3+
try:
4+
from array import array
5+
except ImportError:
6+
import sys
7+
print("SKIP")
8+
sys.exit()
49

510
print(bytes(array('f', [1, 2.3])))

0 commit comments

Comments
 (0)