Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Exclude test for python versionbs less than 3.8

Samuel Bartlett618e82dbe104
diff --git a/tests/test_linkextractors.py b/tests/test_linkextractors.py
index 78219f642..784fdb658 100644
--- a/tests/test_linkextractors.py
+++ b/tests/test_linkextractors.py
@@ -819,7 +819,7 @@ class LxmlLinkExtractorTestCase(Base.LinkExtractorTestCase):
@unittest.skipIf(
sys.version_info < (3, 8),
- reason="Urllib3 is less strict in versions for python 3.7 so does not cause spider to crash",
+ reason="some library for python 3.7 so is less strict so bad links like htis don't crash scrapy",
)
def test_skip_bad_links(self):
html = b"""