You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/snapshots/rustpython_compiler_core__compile__tests__nested_double_async_with.snap
+9-8Lines changed: 9 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
---
2
2
source: compiler/src/compile.rs
3
3
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
+
4
5
---
5
-
0SetupLoop
6
+
0SetupLoop (69)
6
7
1LoadNameAny (0, StopIteration)
7
8
2LoadConst ("spam")
8
9
3CallFunctionPositional (1)
@@ -14,12 +15,12 @@ expression: "compile_exec(\"\\\nfor stop_exc in (StopIteration('spam'), StopAsyn
14
15
>>9ForIter (68)
15
16
10StoreLocal (2, stop_exc)
16
17
11LoadNameAny (3, self)
17
-
12LoadAttr (subTest)
18
+
12LoadMethod (subTest)
18
19
13LoadNameAny (5, type)
19
20
14LoadNameAny (2, stop_exc)
20
21
15CallFunctionPositional (1)
21
22
16LoadConst (("type"))
22
-
17CallFunctionKeyword (1)
23
+
17CallMethodKeyword (1)
23
24
18SetupWith (65)
24
25
19Pop
25
26
20SetupExcept (40)
@@ -48,29 +49,29 @@ expression: "compile_exec(\"\\\nfor stop_exc in (StopIteration('spam'), StopAsyn
0 commit comments