|
84 | 84 |
|
85 | 85 | async with random_ignored_library.fail_after(10):
|
86 | 86 | ...
|
| 87 | +@@ x,18 x,18 @@ |
| 88 | + with trio.fail_after(1): |
| 89 | + with trio.CancelScope(): |
| 90 | + await trio.sleep_forever() |
| 91 | +- with trio.CancelScope(): # error: 13, "trio", "CancelScope" |
| 92 | +- ... |
| 93 | ++ # error: 13, "trio", "CancelScope" |
| 94 | ++ ... |
| 95 | + with trio.CancelScope(): |
| 96 | + await trio.sleep_forever() |
| 97 | +- with trio.CancelScope(): # error: 13, "trio", "CancelScope" |
| 98 | +- ... |
| 99 | ++ # error: 13, "trio", "CancelScope" |
| 100 | ++ ... |
| 101 | + |
| 102 | +- with trio.fail_after(1): # error: 9, "trio", "fail_after" |
| 103 | +- with trio.CancelScope(): # error: 13, "trio", "CancelScope" |
| 104 | +- ... |
| 105 | +- with trio.CancelScope(): # error: 13, "trio", "CancelScope" |
| 106 | +- ... |
| 107 | ++ # error: 9, "trio", "fail_after" |
| 108 | ++ # error: 13, "trio", "CancelScope" |
| 109 | ++ ... |
| 110 | ++ # error: 13, "trio", "CancelScope" |
| 111 | ++ ... |
| 112 | + |
| 113 | + with trio.fail_after(1): |
| 114 | + with trio.CancelScope(): |
| 115 | +@@ x,12 x,12 @@ |
| 116 | + # don't remove other scopes |
| 117 | + with contextlib.suppress(Exception): |
| 118 | + print("foo") |
| 119 | +- with trio.fail_after(1): # error: 9, "trio", "fail_after" |
| 120 | +- with contextlib.suppress(Exception): |
| 121 | +- print("foo") |
| 122 | ++ # error: 9, "trio", "fail_after" |
| 123 | + with contextlib.suppress(Exception): |
| 124 | +- with trio.fail_after(1): # error: 13, "trio", "fail_after" |
| 125 | +- print("foo") |
| 126 | ++ print("foo") |
| 127 | ++ with contextlib.suppress(Exception): |
| 128 | ++ # error: 13, "trio", "fail_after" |
| 129 | ++ print("foo") |
| 130 | + |
| 131 | + with contextlib.suppress(Exception): |
| 132 | + with open("blah") as file: |
0 commit comments