Repository navigation
Commit 433a534
committed
Change setting up directories for our test runner
Testing the effect of the `XDG_CACHE_HOME` and `XDG_CONFIG_HOME`
environment variables using the `astropy` test runner (like the double
test CI job does) did not work because the test runner used
`set_temp_cache` and `set_temp_config` context managers, which have
priority over the environment variables. The test runner has no need to
configure the cache directory because `pytest` is configured to do that
anyways. Setting up a temporary configuration directory is required to
guarantee that `pytest` uses the temporary `astropy` configuration
before its own configuration is read, but `set_temp_cache` should
nonetheless be avoided.1 parent 49765f4 commit 433a534
1 file changed
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | | - | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
| 238 | + | |
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
254 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
0 commit comments