From 9b5c862ed1e2ba684c9f90c10a83052c2a04b54e Mon Sep 17 00:00:00 2001 From: albertexye Date: Thu, 11 Apr 2024 21:17:54 -0400 Subject: [PATCH] test case for true-division ZeroDivisionError --- tests/01_int.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/01_int.py b/tests/01_int.py index 2c13964c..22dcc75f 100644 --- a/tests/01_int.py +++ b/tests/01_int.py @@ -139,6 +139,12 @@ try: except ZeroDivisionError: pass +try: + 1 / 0 + exit(1) +except ZeroDivisionError: + pass + assert not 1 < 2 > 3 try: