Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
TST: Make refcount tests more resilient to Python changes#29970
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -26,11 +26,12 @@ def test_quiver_memory_leak(): | ||||||
Q = draw_quiver(ax) | ||||||
ttX = Q.X | ||||||
orig_refcount = sys.getrefcount(ttX) | ||||||
Q.remove() | ||||||
del Q | ||||||
assert sys.getrefcount(ttX)< orig_refcount | ||||||
@pytest.mark.skipif(platform.python_implementation() != 'CPython', | ||||||
@@ -43,9 +44,9 @@ def test_quiver_key_memory_leak(): | ||||||
qk = ax.quiverkey(Q, 0.5, 0.92, 2, r'$2 \frac{m}{s}$', | ||||||
labelpos='W', | ||||||
fontproperties={'weight': 'bold'}) | ||||||
orig_refcount =sys.getrefcount(qk) | ||||||
qk.remove() | ||||||
assert sys.getrefcount(qk)< orig_refcount | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
? If not, feel free to self merge. | ||||||
def test_quiver_number_of_args(): | ||||||
Uh oh!
There was an error while loading.Please reload this page.