@@ -55,13 +55,7 @@ def get_pem_bytes(rsa_public_key):
5555 )
5656
5757
58- @unittest .skipIf (
59- not hasattr (unittest , "IsolatedAsyncioTestCase" ),
60- "python 3.7 doesn't have IsolatedAsyncioTestCase" ,
61- )
62- class TestAsyncAsymmetricSignatureVerifier (
63- getattr (unittest , "IsolatedAsyncioTestCase" , object )
64- ):
58+ class TestAsyncAsymmetricSignatureVerifier (unittest .IsolatedAsyncioTestCase ):
6559 @pytest .mark .asyncio
6660 @aioresponses ()
6761 async def test_async_asymmetric_verifier_fetches_key (self , mocked ):
@@ -75,11 +69,7 @@ async def test_async_asymmetric_verifier_fetches_key(self, mocked):
7569 self .assertEqual (get_pem_bytes (key ), RSA_PUB_KEY_1_PEM )
7670
7771
78- @unittest .skipIf (
79- not hasattr (unittest , "IsolatedAsyncioTestCase" ),
80- "python 3.7 doesn't have IsolatedAsyncioTestCase" ,
81- )
82- class TestAsyncJwksFetcher (getattr (unittest , "IsolatedAsyncioTestCase" , object )):
72+ class TestAsyncJwksFetcher (unittest .IsolatedAsyncioTestCase ):
8373 @pytest .mark .asyncio
8474 @aioresponses ()
8575 @unittest .mock .patch (
@@ -235,11 +225,7 @@ async def test_async_fails_to_fetch_jwks_json_after_retrying_twice(self, mocked)
235225 self .assertEqual (mock .call_count , 2 )
236226
237227
238- @unittest .skipIf (
239- not hasattr (unittest , "IsolatedAsyncioTestCase" ),
240- "python 3.7 doesn't have IsolatedAsyncioTestCase" ,
241- )
242- class TestAsyncTokenVerifier (getattr (unittest , "IsolatedAsyncioTestCase" , object )):
228+ class TestAsyncTokenVerifier (unittest .IsolatedAsyncioTestCase ):
243229 @pytest .mark .asyncio
244230 @aioresponses ()
245231 async def test_RS256_token_signature_passes (self , mocked ):
0 commit comments