diff options
author | Ayke van Laethem <aykevanlaethem@gmail.com> | 2018-07-22 16:19:22 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-08-04 15:14:23 +1000 |
commit | 6572029dc0665e58c2ea7355c9e541bdf83105a4 (patch) | |
tree | 7590e55e282f43050f0a1717c41fdc6667663f98 /tests/misc/print_exception.py | |
parent | 7be5bb367212b6949e74f73d90af01f8b68f1352 (diff) |
tests: Make tests work on targets without float support.
Diffstat (limited to 'tests/misc/print_exception.py')
-rw-r--r-- | tests/misc/print_exception.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/print_exception.py b/tests/misc/print_exception.py index f120fe1e1..f33162404 100644 --- a/tests/misc/print_exception.py +++ b/tests/misc/print_exception.py @@ -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: |