Repository navigation
Fix bug in temporary path setting (was: Clear up cache-related warnings on Windows) - #9703
Conversation
|
OK now that's really weird - non-data tests, |
|
The fix for #9704 would be much clearer (and in fact the bug would not have arisen) if the context managers had been written as generators with Lesson: don't use explicit |
|
@bsipocz - should I zap the changelog entry then? This does actually fix a bug in |
|
Yes, the current one has to go as none of that is user facing. However, I'm not against adding one for the config part. But, let's wait for @pllim's review. |
|
Sorry, this is on my list to review but I am catching up with post-gobble-gobble email pile. 🦃 😬 |
pllim
left a comment
There was a problem hiding this comment.
Some minor comments, otherwise LGTM!
The CI for 0ba6a51 looks fine. Ref: https://travis-ci.org/astropy/astropy/builds/618410244
|
Depending on whether this or #9669 gets merged first, the other will need a rebase to rerun the CI before merge, just in case. |
|
Please rebase and let the CI run one more time now that #9669 is merged. Thank you! |
f968943 to
9c2ff73
Compare
|
One of the job failed with some cache error. I restarted it in case it's transient. |
|
Still failed. @aarchiba , any ideas? |
|
I manually deleted Travis cache for this PR and rerun the failed job again. We'll see. |
|
Tests passed. @aarchiba , is that |
|
I don't think the CacheDamaged is real - I mean it shouldn't happen, but I didn't change anything relevant to it, and it went away on a clean rerun. And the failure mode is that there is an unreferenced file left behind, which is a less-serious sort of error. I don't know where it came from. But the state of the code previous to this fix introduced some nasty dependences between test cases. |
|
Okay, merging then. Thank you very much! |
Fix bug in temporary path setting (was: Clear up cache-related warnings on Windows)
Description
#9634 suppressed a certain number of warning from the cache module. This PR is meant to track them down and test for them as appropriate so that they can be left enabled.
It turns out they all stemmed from a single bug, which was that if an error occurred at a particular moment, the command that temporarily resets the cache location fails to reset it.
Fixes #9704
Fixes #9620