Additional Python 2.x assert vs raise testing

This commit is contained in:
rocky
2018-03-25 17:34:38 -04:00
parent 2ae9cd7d08
commit 631940887f
3 changed files with 22 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ class Scanner2(Scanner):
# raise AssertionError
# and
# assert ...
# Below we use the heuristic that it is preceded by a POP_JUMP.
# Below we use the heuristic that an "sssert" is preceded by a POP_JUMP.
# however we could also use followed by RAISE_VARARGS
# or for PyPy there may be a JUMP_IF_NOT_DEBUG before.
# FIXME: remove uses of PJIF, and PJIT