(self)
| 327 | self.assertEqual(L3[2:5], p3[2:5]) |
| 328 | |
| 329 | def test_proxy_unicode(self): |
| 330 | # See bug 5037 |
| 331 | class C(object): |
| 332 | def __str__(self): |
| 333 | return "string" |
| 334 | def __bytes__(self): |
| 335 | return b"bytes" |
| 336 | instance = C() |
| 337 | self.assertIn("__bytes__", dir(weakref.proxy(instance))) |
| 338 | self.assertEqual(bytes(weakref.proxy(instance)), b"bytes") |
| 339 | |
| 340 | def test_proxy_index(self): |
| 341 | class C: |
nothing calls this directly
no test coverage detected