Skip to content

Commit

Permalink
Change skip message
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau committed Jul 23, 2024
1 parent 5abc084 commit 30c03b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ async def coro(self):
pass

class DeprecatedCoroTests(BaseTestCase):
@skipUnless(TYPING_3_12_ONLY or TYPING_3_13_0_RC, "@deprecated was added to warnings in Python 3.13")
@skipUnless(TYPING_3_12_ONLY or TYPING_3_13_0_RC, "inspect.iscoroutinefunction works differently on Python < 3.12")
def test_inspect_py313(self):
self.assertFalse(inspect.iscoroutinefunction(func))
self.assertFalse(inspect.iscoroutinefunction(Cls.func))
Expand All @@ -887,7 +887,7 @@ def test_inspect_py313(self):
self.assertTrue(asyncio.coroutines.iscoroutinefunction(coro))
self.assertTrue(asyncio.coroutines.iscoroutinefunction(Cls.coro))

@skipIf(TYPING_3_12_0, "Behavior changed with Python 3.12")
@skipIf(TYPING_3_12_0, "inspect.iscoroutinefunction works differently on Python 3.12+")
def test_inspect_py311(self):
# This doesn't work in Python < 3.12.
# self.assertTrue(inspect.iscoroutinefunction(func))
Expand Down

0 comments on commit 30c03b1

Please sign in to comment.