张皓晟 3 miesięcy temu
rodzic
commit
5c5f96a09c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tests/901_array2d_extra1.py

+ 1 - 1
tests/901_array2d_extra1.py

@@ -120,7 +120,7 @@ def gc_collect_callback(statue, msg):
             if "5290" in line and "str" in line:
                 return
         print(msg)
-        assert False
+        raise AssertionError("Expected GC output not found")
 
 gc.collect()
 gc.setup_debug_callback(gc_collect_callback)