diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-08-25 09:44:09 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-08-25 09:44:09 (GMT) |
commit | ce6a070414ed1e1374d1e6212bfbff61b6d5d755 (patch) | |
tree | 55f9d0c54b98ad3c95e78a235668f6dbc314087b /Lib/test/test_dis.py | |
parent | 8371799e300475c8f9f967e900816218d3500e5d (diff) | |
download | cpython-ce6a070414ed1e1374d1e6212bfbff61b6d5d755.zip cpython-ce6a070414ed1e1374d1e6212bfbff61b6d5d755.tar.gz cpython-ce6a070414ed1e1374d1e6212bfbff61b6d5d755.tar.bz2 |
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
Fix assert statement misbehavior if AssertionError is shadowed.
Diffstat (limited to 'Lib/test/test_dis.py')
-rw-r--r-- | Lib/test/test_dis.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index 03b2860..11f97e6 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -147,7 +147,7 @@ def bug1333982(x=[]): dis_bug1333982 = """\ %3d 0 LOAD_CONST 1 (0) 2 POP_JUMP_IF_TRUE 26 - 4 LOAD_GLOBAL 0 (AssertionError) + 4 LOAD_ASSERTION_ERROR 6 LOAD_CONST 2 (<code object <listcomp> at 0x..., file "%s", line %d>) 8 LOAD_CONST 3 ('bug1333982.<locals>.<listcomp>') 10 MAKE_FUNCTION 0 |