summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float2int.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-04 16:35:40 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-05-04 16:53:52 +0300
commit3d3ef36e977b5f5a4153b8df6447f3f73e4726e3 (patch)
tree38fc98e386b6d2e2d67e487e1dbf8dd8011a516f /tests/float/float2int.py
parent1829d86ef5f4abf172f0cf34abba8113aa538f76 (diff)
downloadmicropython-3d3ef36e977b5f5a4153b8df6447f3f73e4726e3.tar.gz
micropython-3d3ef36e977b5f5a4153b8df6447f3f73e4726e3.zip
modstruct: Rename module to "ustruct", to allow full Python-level impl.
Diffstat (limited to 'tests/float/float2int.py')
-rw-r--r--tests/float/float2int.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/float/float2int.py b/tests/float/float2int.py
index ca395997c4..e9bdf15de6 100644
--- a/tests/float/float2int.py
+++ b/tests/float/float2int.py
@@ -1,6 +1,9 @@
# check cases converting float to int, relying only on single precision float
-import struct
+try:
+ import ustruct as struct
+except:
+ import struct
# work out configuration values
is_64bit = struct.calcsize("P") == 8