(self)
| 7983 | class OtherABCTests(BaseTestCase): |
| 7984 | |
| 7985 | def test_contextmanager(self): |
| 7986 | @contextlib.contextmanager |
| 7987 | def manager(): |
| 7988 | yield 42 |
| 7989 | |
| 7990 | cm = manager() |
| 7991 | self.assertIsInstance(cm, typing.ContextManager) |
| 7992 | self.assertNotIsInstance(42, typing.ContextManager) |
| 7993 | |
| 7994 | def test_contextmanager_type_params(self): |
| 7995 | cm1 = typing.ContextManager[int] |
nothing calls this directly
no test coverage detected