Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed contexts are from purge_files and don't pop from _file_map #1551

Closed
wants to merge 1 commit into from
Closed

Removed contexts are from purge_files and don't pop from _file_map #1551

wants to merge 1 commit into from

Conversation

wingware-dev
Copy link
Contributor

This works for me and I agree it makes more sense to keep file_ids around so they remain constant over time for the same file. Please let me know if you would prefer just to remove the second test, which is creating contexts but not adding much anymore, other than just checking that measured_contexts() still has them (sort of obvious / unlikely to be an issue that needs to be tested here specifically).

…s API call

and don't remove the filenames from _file_map so that file_id for a file remains
constant over time.  Modified the test for purge_files with contexts to still
work, although possibly should just be removed.
@nedbat
Copy link
Owner

nedbat commented Feb 8, 2023

I'd already started moving some code around in my own branch, so I'll take care of this, thanks.

@nedbat nedbat closed this Feb 8, 2023
@wingware-dev
Copy link
Contributor Author

Great, thank you!

@nedbat
Copy link
Owner

nedbat commented Feb 8, 2023

This is finished in commit 423fa59.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants