Commit 8c147fa
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 527fd44 commit 8c147fa
1 file changed
+5
-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 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
83 | | - | |
84 | | - | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments