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 f56798e commit be32456Copy full SHA for be32456
1 file changed
tests/unit/weakref_test.py
@@ -52,6 +52,11 @@ def test_wrappers_for_different_objects_are_not_equal(self) -> None:
52
# hashes match because contents match
53
assert hash(w1) == hash(w2)
54
55
+ def test_repr_includes_value_when_proxy_alive(self) -> None:
56
+ wrapper = WeakWrapper({"k": "v"})
57
+ text = repr(wrapper)
58
+ assert text.startswith("WeakWrapper(") and "'v'" in text
59
+
60
def test_hash_handles_sets(self) -> None:
61
s1 = {"a", "b"}
62
s2 = {"b", "a"}
0 commit comments