@@ -3851,6 +3851,40 @@ var compileTestData = []struct {
38513851 Firstlineno : 1 ,
38523852 Lnotab : "\x0c \x01 \x0c \x01 " ,
38533853 }, nil , "" },
3854+ {"ok = False\n try:\n raise SyntaxError\n except SyntaxError:\n ok = True\n assert ok\n " , "exec" , & py.Code {
3855+ Argcount : 0 ,
3856+ Kwonlyargcount : 0 ,
3857+ Nlocals : 0 ,
3858+ Stacksize : 11 ,
3859+ Flags : 64 ,
3860+ Code : "\x64 \x00 \x00 \x5a \x00 \x00 \x79 \x0a \x00 \x65 \x01 \x00 \x82 \x01 \x00 \x57 \x6e \x18 \x00 \x04 \x65 \x01 \x00 \x6b \x0a \x00 \x72 \x2a \x00 \x01 \x01 \x01 \x64 \x01 \x00 \x5a \x00 \x00 \x59 \x6e \x01 \x00 \x58 \x65 \x00 \x00 \x73 \x37 \x00 \x74 \x02 \x00 \x82 \x01 \x00 \x64 \x02 \x00 \x53 " ,
3861+ Consts : []py.Object {py .False , py .True , py .None },
3862+ Names : []string {"ok" , "SyntaxError" , "AssertionError" },
3863+ Varnames : []string {},
3864+ Freevars : []string {},
3865+ Cellvars : []string {},
3866+ Filename : "<string>" ,
3867+ Name : "<module>" ,
3868+ Firstlineno : 1 ,
3869+ Lnotab : "\x06 \x01 \x03 \x01 \x0a \x01 \x0d \x01 \x0b \x01 " ,
3870+ }, nil , "" },
3871+ {"ok = False\n try:\n raise SyntaxError\n except SyntaxError as e:\n ok = True\n assert ok\n " , "exec" , & py.Code {
3872+ Argcount : 0 ,
3873+ Kwonlyargcount : 0 ,
3874+ Nlocals : 0 ,
3875+ Stacksize : 16 ,
3876+ Flags : 64 ,
3877+ Code : "\x64 \x00 \x00 \x5a \x00 \x00 \x79 \x0a \x00 \x65 \x01 \x00 \x82 \x01 \x00 \x57 \x6e \x2b \x00 \x04 \x65 \x01 \x00 \x6b \x0a \x00 \x72 \x3d \x00 \x01 \x5a \x02 \x00 \x01 \x7a \x0b \x00 \x64 \x01 \x00 \x5a \x00 \x00 \x57 \x59 \x64 \x02 \x00 \x64 \x02 \x00 \x5a \x02 \x00 \x5b \x02 \x00 \x58 \x6e \x01 \x00 \x58 \x65 \x00 \x00 \x73 \x4a \x00 \x74 \x03 \x00 \x82 \x01 \x00 \x64 \x02 \x00 \x53 " ,
3878+ Consts : []py.Object {py .False , py .True , py .None },
3879+ Names : []string {"ok" , "SyntaxError" , "e" , "AssertionError" },
3880+ Varnames : []string {},
3881+ Freevars : []string {},
3882+ Cellvars : []string {},
3883+ Filename : "<string>" ,
3884+ Name : "<module>" ,
3885+ Firstlineno : 1 ,
3886+ Lnotab : "\x06 \x01 \x03 \x01 \x0a \x01 \x12 \x01 \x19 \x01 " ,
3887+ }, nil , "" },
38543888 {"try:\n f()\n except Exception:\n h()\n " , "exec" , & py.Code {
38553889 Argcount : 0 ,
38563890 Kwonlyargcount : 0 ,
0 commit comments