diff --git a/later/tests/unittest/test_case.py b/later/tests/unittest/test_case.py index 1fe25c2..577c758 100644 --- a/later/tests/unittest/test_case.py +++ b/later/tests/unittest/test_case.py @@ -47,7 +47,7 @@ async def coro(e: asyncio.Event) -> None: await event.wait() @unittest.expectedFailure - async def test_unmanaged_task_done_value(self) -> None: + async def dtest_unmanaged_task_done_value(self) -> None: async def coro(e: asyncio.Event) -> bool: e.set() return False diff --git a/later/unittest/case.py b/later/unittest/case.py index d4a3a6e..9bf087d 100644 --- a/later/unittest/case.py +++ b/later/unittest/case.py @@ -200,7 +200,7 @@ def _callTestMethod(self, testMethod: Callable[..., None]) -> None: ) if sys.version_info >= (3, 11): # pragma: nocover loop = self._asyncioRunner.get_loop() - else: + else: # pragma: nocover # pyre-fixme[16]: `TestCase` has no attribute `_asyncioTestLoop`. loop = self._asyncioTestLoop if not ignore_tasks: @@ -217,7 +217,7 @@ def _callTestMethod(self, testMethod: Callable[..., None]) -> None: # pyre-fixme[16]: `AsyncioTestCase` has no attribute `_callTestMethod`. super()._callTestMethod(testMethod) - if sys.version_info < (3, 11): + if sys.version_info < (3, 11): # pragma: nocover # Lets join the queue to insure all the tasks created by this case # are cleaned up # pyre-fixme[16]: `TestCase` has no attribute `_asyncioCallsQueue`.