-
Notifications
You must be signed in to change notification settings - Fork 0
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
inject_define
uses the wrong bindings if different classes with the same name are declared in the same file
#43
Comments
This failure occurs when
|
bcmills
added a commit
that referenced
this issue
Oct 15, 2024
Previously, we were using only the class name and filename as the binding key, which caused collisions if the same name was used to declare more than one (local) class in the same file (as in test_registry_attrs.py). In the process, this simplifies the process of getting the stack frames: we had been retrieving the same frames (redundantly) in two different ways in the process of defining a field, but the potential sharing was somewhat obscured because the code was split into very short functions. Fixes #43.
bcmills
changed the title
Fix flaky test in
Nov 4, 2024
test_registry_attrs.py
inject_define
uses the wrong bindings if different classes with the same name are declared in the same file
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/duolingo/minject/actions/runs/9977074810/job/27570812505
A test in
tests/test_registry_attrs.py
sometimes fails.The text was updated successfully, but these errors were encountered: