(self)
| 2307 | self.assertEqual(interpid, 10) |
| 2308 | |
| 2309 | def test_conversion_coerced(self): |
| 2310 | convert = _testinternalcapi.normalize_interp_id |
| 2311 | class MyInt(str): |
| 2312 | def __index__(self): |
| 2313 | return 10 |
| 2314 | interpid = convert(MyInt()) |
| 2315 | self.assertEqual(interpid, 10) |
| 2316 | |
| 2317 | def test_conversion_from_interpreter(self): |
| 2318 | convert = _testinternalcapi.normalize_interp_id |
nothing calls this directly
no test coverage detected