Skip to content

Commit 5db4a23

Browse files
authored
Merge pull request RustPython#3254 from aDotInTheVoid/bless
Bless Tests
2 parents eaae134 + 98aa4bb commit 5db4a23

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

compiler/src/snapshots/rustpython_compiler_core__compile__tests__nested_double_async_with.snap

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
source: compiler/src/compile.rs
33
expression: "compile_exec(\"\\\nfor stop_exc in (StopIteration('spam'), StopAsyncIteration('ham')):\n with self.subTest(type=type(stop_exc)):\n try:\n async with woohoo():\n raise stop_exc\n except Exception as ex:\n self.assertIs(ex, stop_exc)\n else:\n self.fail(f'{stop_exc} was suppressed')\n\")"
4+
45
---
5-
0 SetupLoop
6+
0 SetupLoop (69)
67
1 LoadNameAny (0, StopIteration)
78
2 LoadConst ("spam")
89
3 CallFunctionPositional (1)
@@ -14,12 +15,12 @@ expression: "compile_exec(\"\\\nfor stop_exc in (StopIteration('spam'), StopAsyn
1415
>> 9 ForIter (68)
1516
10 StoreLocal (2, stop_exc)
1617
11 LoadNameAny (3, self)
17-
12 LoadAttr (subTest)
18+
12 LoadMethod (subTest)
1819
13 LoadNameAny (5, type)
1920
14 LoadNameAny (2, stop_exc)
2021
15 CallFunctionPositional (1)
2122
16 LoadConst (("type"))
22-
17 CallFunctionKeyword (1)
23+
17 CallMethodKeyword (1)
2324
18 SetupWith (65)
2425
19 Pop
2526
20 SetupExcept (40)
@@ -48,29 +49,29 @@ expression: "compile_exec(\"\\\nfor stop_exc in (StopIteration('spam'), StopAsyn
4849
43 JumpIfFalse (53)
4950
44 StoreLocal (8, ex)
5051
45 LoadNameAny (3, self)
51-
46 LoadAttr (assertIs)
52+
46 LoadMethod (assertIs)
5253
47 LoadNameAny (8, ex)
5354
48 LoadNameAny (2, stop_exc)
54-
49 CallFunctionPositional (2)
55+
49 CallMethodPositional (2)
5556
50 Pop
5657
51 PopException
5758
52 Jump (63)
5859
>> 53 Raise (Reraise)
5960
>> 54 LoadNameAny (3, self)
60-
55 LoadAttr (fail)
61+
55 LoadMethod (fail)
6162
56 LoadConst ("")
6263
57 LoadNameAny (2, stop_exc)
6364
58 FormatValue (None)
6465
59 LoadConst (" was suppressed")
6566
60 BuildString (2)
66-
61 CallFunctionPositional (1)
67+
61 CallMethodPositional (1)
6768
62 Pop
6869
>> 63 PopBlock
6970
64 EnterFinally
7071
>> 65 WithCleanupStart
7172
66 WithCleanupFinish
7273
67 Jump (9)
7374
>> 68 PopBlock
74-
69 LoadConst (None)
75+
>> 69 LoadConst (None)
7576
70 ReturnValue
7677

0 commit comments

Comments
 (0)