tests/float: Make various tests skippable.

This commit is contained in:
Paul Sokolovsky
2017-03-09 00:11:05 +01:00
parent 983144404b
commit a0cbc108ba
4 changed files with 27 additions and 6 deletions

View File

@@ -1,9 +1,13 @@
# test struct package with floats
try:
import ustruct as struct
except:
import struct
try:
import ustruct as struct
except:
import struct
except ImportError:
import sys
print("SKIP")
sys.exit()
i = 1. + 1/2
# TODO: it looks like '=' format modifier is not yet supported