summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float2int.py
diff options
context:
space:
mode:
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