(self)
| 338 | self.assertEqual(bytes(weakref.proxy(instance)), b"bytes") |
| 339 | |
| 340 | def test_proxy_index(self): |
| 341 | class C: |
| 342 | def __index__(self): |
| 343 | return 10 |
| 344 | o = C() |
| 345 | p = weakref.proxy(o) |
| 346 | self.assertEqual(operator.index(p), 10) |
| 347 | |
| 348 | def test_proxy_div(self): |
| 349 | class C: |
nothing calls this directly
no test coverage detected