@@ -232,7 +232,7 @@ class Base:
def test_restrict_xpaths_encoding(self):
"""Test restrict_xpaths with encodings"""
- html = b"""
About us\xa3
@@ -378,7 +378,7 @@ class Base:
]
def test_base_url_with_restrict_xpaths(self):
- html = b"""
Page title
+ html = b"""Page title
Item 12
"""
response = HtmlResponse("http://example.org/somepage/index.html", body=html)
diff --git a/tests/test_spider.py b/tests/test_spider.py
index 4e4a99638..dceb9f91d 100644
--- a/tests/test_spider.py
+++ b/tests/test_spider.py
@@ -234,7 +234,7 @@ class TestCSVFeedSpider(TestSpider):
class TestCrawlSpider(TestSpider):
- test_body = b"""
Page title
+ test_body = b"""Page title
Item 12