From 6ca6bddf0a9c1c5c7c0367812c6a09b8581e0a30 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 29 Dec 2019 14:39:00 +0100 Subject: behavior: Fix test failure yarl before version 1.4 fails to parse this (invalid) URL. Now it simply accepts it. Pin yarl version to avoid random breakage in the future. --- crocoite/test_behavior.py | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crocoite/test_behavior.py b/crocoite/test_behavior.py index d7401c0..1efea08 100644 --- a/crocoite/test_behavior.py +++ b/crocoite/test_behavior.py @@ -169,6 +169,7 @@ async def test_extract_links (): assert sorted (links) == sorted ([ url.with_path ('/relative'), url.with_fragment ('anchor'), + URL ('http://neue_preise_f%C3%BCr_zahnimplantate_k%C3%B6nnten_sie_%C3%BCberraschen'), URL ('http://example.com/absolute/'), URL ('https://example.com/absolute/secure'), url.with_path ('/hidden/visibility'), # XXX: shall we ignore these as well? diff --git a/setup.py b/setup.py index 0638e00..628442e 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup( 'websockets', 'aiohttp', 'PyYAML', - 'yarl', + 'yarl>=1.4,<1.5', 'multidict', ], extras_require={ -- cgit v1.2.3