Sfoglia il codice sorgente

Update 28_exception.py

blueloveTH 10 mesi fa
parent
commit
b57b16efaf
1 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 5 4
      tests/28_exception.py

+ 5 - 4
tests/28_exception.py

@@ -233,8 +233,9 @@ def g():
     except KeyError:
         pass
 
-try:
-    raise IndexError
-except IndexError:
-    g()
+if 0:
+    try:
+        raise IndexError
+    except IndexError:
+        g()