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