Skip to content

Commit 28876d3

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

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy