Parcourir la source

Add sample test for assertions with messages

aps il y a 3 ans
Parent
commit
ac9640f73e
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      tests/_exception.py

+ 8 - 1
tests/_exception.py

@@ -41,4 +41,11 @@ def f1():
 try:
     f1()
 except KeyError:
-    print("PASS 04")
+    print("PASS 04")
+
+
+assert True, "Msg"
+try:
+    assert False, "Msg"
+except AssertionError:
+    print("PASS 05")