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 27884e2 commit 4ac218fCopy full SHA for 4ac218f
Lib/test/test_weakref.py
@@ -258,8 +258,6 @@ def test_basic_proxy(self):
258
self.assertEqual(L3[:5], p3[:5])
259
self.assertEqual(L3[2:5], p3[2:5])
260
261
- # TODO: RUSTPYTHON
262
- @unittest.expectedFailure
263
def test_proxy_unicode(self):
264
# See bug 5037
265
class C(object):
vm/src/builtins/weakproxy.rs
@@ -78,6 +78,11 @@ impl PyWeakProxy {
78
self.try_upgrade(vm)?.is_true(vm)
79
}
80
81
+ #[pymethod(magic)]
82
+ fn bytes(&self, vm: &VirtualMachine) -> PyResult {
83
+ self.try_upgrade(vm)?.bytes(vm)
84
+ }
85
+
86
fn contains(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
87
let obj = self.try_upgrade(vm)?;
88
PySequence::contains(&obj, &needle, vm)
0 commit comments