We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d41c26 commit e4485d1Copy full SHA for e4485d1
mypyc/test-data/run-weakref.test
@@ -10,13 +10,6 @@ class Object:
10
"""some random weakreffable object"""
11
pass
12
13
-def test_weakref_ref():
14
- obj = Object()
15
- r = ref(obj)
16
- assert r() is obj
17
- obj = None
18
- assert r() is None, r()
19
-
20
def test_weakref_ref_with_callback():
21
obj = Object()
22
r = ref(obj, lambda x: x)
0 commit comments