change xfail condition

This commit is contained in:
Laerte Pereira 2022-12-12 09:56:50 -03:00
parent 0dbd1d9b81
commit e099572cec
No known key found for this signature in database
GPG Key ID: BB69B5C731BB8A80
1 changed files with 4 additions and 4 deletions

View File

@ -183,22 +183,22 @@ class BaseResponseTest(unittest.TestCase):
self.assertRaises(ValueError, r.follow, None)
@mark.xfail(
parse_version(w3lib_version) >= parse_version("2.1.1"),
parse_version(w3lib_version) < parse_version("2.1.1"),
reason="https://github.com/scrapy/w3lib/pull/207",
strict=True,
)
def test_follow_whitespace_url(self):
self._assert_followed_url('foo ',
'http://example.com/foo%20')
'http://example.com/foo')
@mark.xfail(
parse_version(w3lib_version) >= parse_version("2.1.1"),
parse_version(w3lib_version) < parse_version("2.1.1"),
reason="https://github.com/scrapy/w3lib/pull/207",
strict=True,
)
def test_follow_whitespace_link(self):
self._assert_followed_url(Link('http://example.com/foo '),
'http://example.com/foo%20')
'http://example.com/foo')
def test_follow_flags(self):
res = self.response_class('http://example.com/')