From 37f729ceb5bd3578948ecb810fe89a382496d23f Mon Sep 17 00:00:00 2001 From: Jonas Boecquaert Date: Mon, 7 Mar 2022 18:08:38 +0100 Subject: [PATCH] upgrade pyYAML supported versions in setup.py (#1478) Fix test using pyYAML --- setup.py | 2 +- tests/aiohttp/test_aiohttp_simple_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c85f017d0..3814ce3ec 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def read_version(package): install_requires = [ 'clickclick>=1.2,<21', 'jsonschema>=2.5.1,<5', - 'PyYAML>=5.1,<6', + 'PyYAML>=5.1,<7', 'requests>=2.9.1,<3', 'inflection>=0.3.1,<0.6', 'werkzeug>=1.0,<3', diff --git a/tests/aiohttp/test_aiohttp_simple_api.py b/tests/aiohttp/test_aiohttp_simple_api.py index 7e67c2c4f..c48468362 100644 --- a/tests/aiohttp/test_aiohttp_simple_api.py +++ b/tests/aiohttp/test_aiohttp_simple_api.py @@ -70,7 +70,7 @@ async def test_swagger_yaml(aiohttp_api_spec_dir, aiohttp_client): data_ = await spec_response.read() assert spec_response.status == 200 - assert api.specification.raw == yaml.load(data_) + assert api.specification.raw == yaml.load(data_, yaml.FullLoader) async def test_no_swagger_json(aiohttp_api_spec_dir, aiohttp_client):