tests: Make tests work on targets without float support.
This commit is contained in:
committed by
Damien George
parent
7be5bb3672
commit
6572029dc0
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user