Commit 34ebecb
committed
Use monkeypatch to set strict_exception_groups
The pytest tester does not run tests in a subinterpreter or subprocess,
so changing trio.run in a testdir test will also change the global
trio.run. Monkeypatching resets trio.run after the test.1 parent ea74f06 commit 34ebecb
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
83 | | - | |
84 | | - | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
0 commit comments