Skip to content

Commit 19b3fea

Browse files
committed
tests: Separate out test cases that rely on float support to float/ dir.
1 parent 115187f commit 19b3fea

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

tests/basics/array_construct.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@
1313

1414
# convert from other arrays
1515
print(array('H', array('b', [1, 2])))
16-
print(array('f', array('h', [1, 2])))
1716
print(array('b', array('I', [1, 2])))
18-
print(array('d', array('f', [1, 2])))

tests/basics/bytearray_construct.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
print(bytearray(array('b', [1, 2])))
1212
print(bytearray(array('h', [1, 2])))
1313
print(bytearray(array('I', [1, 2])))
14-
print(bytearray(array('f', [1, 2.3])))

tests/basics/bytes_construct.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
print(bytes(array('b', [1, 2])))
1212
print(bytes(array('h', [1, 2])))
1313
print(bytes(array('I', [1, 2])))
14-
print(bytes(array('f', [1, 2.3])))

tests/float/array_construct.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# test construction of array from array with float type
2+
3+
from array import array
4+
5+
print(array('f', array('h', [1, 2])))
6+
print(array('d', array('f', [1, 2])))

tests/float/bytearray_construct.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# test construction of bytearray from array with float type
2+
3+
from array import array
4+
5+
print(bytearray(array('f', [1, 2.3])))

tests/float/bytes_construct.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# test construction of bytearray from array with float type
2+
3+
from array import array
4+
5+
print(bytes(array('f', [1, 2.3])))

0 commit comments

Comments
 (0)