diff --git a/tests/spiders.py b/tests/spiders.py index c47f2bd2b..43cdcaef3 100644 --- a/tests/spiders.py +++ b/tests/spiders.py @@ -418,7 +418,7 @@ class CrawlSpiderWithParseMethod(MockServerSpider, CrawlSpider): async def start(self): test_body = b""" - Page title<title></head> + <head><title>Page title

Item 200

Item 201

@@ -472,7 +472,7 @@ class CrawlSpiderWithErrback(CrawlSpiderWithParseMethod): async def start(self): test_body = b""" - Page title<title></head> + <head><title>Page title

Item 200

Item 201

diff --git a/tests/test_linkextractors.py b/tests/test_linkextractors.py index 1bff369af..15d358d2a 100644 --- a/tests/test_linkextractors.py +++ b/tests/test_linkextractors.py @@ -152,7 +152,7 @@ class Base: def test_nofollow(self): """Test the extractor's behaviour for links with rel='nofollow'""" - html = b"""Page title<title> + html = b"""<html><head><title>Page title