Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use an explicit mapping for locals in this test
In Python 3.13 the `locals` function now returns a fresh mapping each time it's called (when called in a function). We thus need to store a reference to the mapping being used, rather than re-fetching it each time. Since we don't actually need to modify the locals within the scope of the test function itself, it suffices to use our own mapping here rather than the result of calling `locals`, which fully isolates this test from the nature of that function. Fixes #2002
- Loading branch information