Skip to content

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

selector.__repr__ test, repr type is bytesarray

Nikolaos-Digenis Karagiannisd2d014a4e906
diff --git a/scrapy/tests/test_selector.py b/scrapy/tests/test_selector.py
index 00790537b..9533bfbd2 100644
--- a/scrapy/tests/test_selector.py
+++ b/scrapy/tests/test_selector.py
@@ -43,7 +43,7 @@ class SelectorTestCase(unittest.TestCase):
self.assertEqual(
map(repr, sel.xpath('//input/@name')),
- [u"<Selector xpath='//input/@name' data=u'{}'>".format(40 * 'b')]
+ ["<Selector xpath='//input/@name' data=u'{}'>".format(40 * 'b')]
)
def test_select_unicode_query(self):