tests/float: Make various tests skippable. · csamuelson/circuitpython@a0cbc10 · GitHub
Skip to content

Commit a0cbc10

Browse files
committed
tests/float: Make various tests skippable.
1 parent 9831444 commit a0cbc10

4 files changed

Lines changed: 27 additions & 6 deletions

File tree

tests/float/array_construct.py

Lines changed: 6 additions & 1 deletion

tests/float/builtin_float_minmax.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# test builtin min and max functions with float args
2+
try:
3+
min
4+
max
5+
except:
6+
import sys
7+
print("SKIP")
8+
sys.exit()
29

310
print(min(0,1.0))
411
print(min(1.0,0))

tests/float/float_array.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
from array import array
1+
try:
2+
from array import array
3+
except ImportError:
4+
import sys
5+
print("SKIP")
6+
sys.exit()
27

38
def test(a):
49
print(a)

tests/float/float_struct.py

Lines changed: 8 additions & 4 deletions

0 commit comments

Comments
 (0)