From 6572029dc0665e58c2ea7355c9e541bdf83105a4 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sun, 22 Jul 2018 16:19:22 +0200 Subject: tests: Make tests work on targets without float support. --- tests/misc/print_exception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/misc') 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: -- cgit v1.2.3