From 19b3fea6a885d071a1216614ee3f766aba947cbf Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 8 Jan 2015 15:41:37 +0000 Subject: tests: Separate out test cases that rely on float support to float/ dir. --- tests/float/bytes_construct.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/float/bytes_construct.py (limited to 'tests/float/bytes_construct.py') diff --git a/tests/float/bytes_construct.py b/tests/float/bytes_construct.py new file mode 100644 index 000000000..0a57e08a2 --- /dev/null +++ b/tests/float/bytes_construct.py @@ -0,0 +1,5 @@ +# test construction of bytearray from array with float type + +from array import array + +print(bytes(array('f', [1, 2.3]))) -- cgit v1.2.3