Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit73b2152
committed
TST: Cache available interactive backends
There are currently 7 backends, and this function is called 8 timesduring test collection. This means that `XOpenDisplay` would be called56 times (multiplied by process count if using xdist).Locally, I'm seeing a deadlock after too many calls to `XOpenDisplay`during collection. While this is not directly our bug, it seems prudentto cut this down to only the one check per collection process.I don't think we can cache this globally, as one might want to re-try aGUI figure after starting an X server (e.g., over SSH or similar),without restarting Python/Matplotlib.1 parent161d47b commit73b2152
1 file changed
+15
-11
lines changedLines changed: 15 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
1 | 2 |
| |
2 | 3 |
| |
3 | 4 |
| |
| |||
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
55 |
| - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 |
| |
57 | 61 |
| |
58 | 62 |
| |
| |||
70 | 74 |
| |
71 | 75 |
| |
72 | 76 |
| |
73 |
| - | |
74 |
| - | |
| 77 | + | |
75 | 78 |
| |
76 | 79 |
| |
77 | 80 |
| |
| |||
85 | 88 |
| |
86 | 89 |
| |
87 | 90 |
| |
88 |
| - | |
89 |
| - | |
| 91 | + | |
90 | 92 |
| |
91 | 93 |
| |
92 | 94 |
| |
| |||
97 | 99 |
| |
98 | 100 |
| |
99 | 101 |
| |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
| 102 | + | |
106 | 103 |
| |
107 | 104 |
| |
108 | 105 |
| |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 |
| |
110 | 114 |
| |
111 | 115 |
| |
|
0 commit comments
Comments
(0)