tests: Make tests work on targets without float support.

This commit is contained in:
Ayke van Laethem
2018-07-22 16:19:22 +02:00
committed by Damien George
parent 7be5bb3672
commit 6572029dc0
5 changed files with 31 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ def print_exc(e):
# basic exception message
try:
1/0
raise Exception('msg')
except Exception as e:
print('caught')
print_exc(e)
@@ -40,7 +40,7 @@ except Exception as e:
def f():
g()
def g():
2/0
raise Exception('fail')
try:
f()
except Exception as e: