Getting
TypeError: object MagicMock can't be used in 'await' expression
for Python 3.7 and earlier. this test is not needed
on all platforms it's confirming that two methods
are present.
Change-Id: If918add023c98c062ea0c1cd132a999647a2d35f
return exclusions.only_if(check)
+ @property
+ def python38(self):
+ return exclusions.only_if(
+ lambda: util.py38, "Python 3.8 or above required"
+ )
+
@property
def cpython(self):
return exclusions.only_if(
"setup_asyncpg_jsonb_codec",
argnames="methname",
)
+ @testing.requires.python38
@async_test
async def test_codec_registration(
self, metadata, async_testing_engine, methname