diff options
| author | Benjamin Peterson <benjamin@python.org> | 2011-10-27 12:53:32 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2011-10-27 12:53:32 (GMT) |
| commit | 7789f270d8ab3b8679c4536f49595d333078e982 (patch) | |
| tree | a3177667fe9e16ef8d2c08e8aa3bde6dfc7e14d7 /Lib/test | |
| parent | 85c46b163561368fb16451cbaa2c899c8870d3a7 (diff) | |
| download | cpython-7789f270d8ab3b8679c4536f49595d333078e982.zip cpython-7789f270d8ab3b8679c4536f49595d333078e982.tar.gz cpython-7789f270d8ab3b8679c4536f49595d333078e982.tar.bz2 | |
adjust for change in assert bytecode
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | Lib/test/test_dis.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index 3849dc2..6ce4b79 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -54,7 +54,7 @@ def bug1333982(x=[]): dis_bug1333982 = """\ %-4d 0 LOAD_CONST 1 (0) - 3 POP_JUMP_IF_TRUE 38 + 3 POP_JUMP_IF_TRUE 41 6 LOAD_GLOBAL 0 (AssertionError) 9 BUILD_LIST 0 12 LOAD_FAST 0 (x) @@ -67,10 +67,11 @@ dis_bug1333982 = """\ %-4d >> 31 LOAD_CONST 2 (1) 34 BINARY_ADD - 35 RAISE_VARARGS 2 + 35 CALL_FUNCTION 1 + 38 RAISE_VARARGS 1 - %-4d >> 38 LOAD_CONST 0 (None) - 41 RETURN_VALUE + %-4d >> 41 LOAD_CONST 0 (None) + 44 RETURN_VALUE """%(bug1333982.func_code.co_firstlineno + 1, bug1333982.func_code.co_firstlineno + 2, bug1333982.func_code.co_firstlineno + 3) |
