From abf756fc5c5f7251ddb469380eda497b2e8b2e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gra=C3=B1a?= Date: Tue, 27 Aug 2013 12:12:50 -0300 Subject: [PATCH] py26 can not format zero length fields {} --- scrapy/tests/test_crawl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/tests/test_crawl.py b/scrapy/tests/test_crawl.py index 10219a602..1878f7a1d 100644 --- a/scrapy/tests/test_crawl.py +++ b/scrapy/tests/test_crawl.py @@ -112,7 +112,7 @@ Connection: close foo body with multiples lines '''}) - spider = SimpleSpider("http://localhost:8998/raw?{}".format(query)) + spider = SimpleSpider("http://localhost:8998/raw?{0}".format(query)) yield docrawl(spider) log = get_testlog() self.assertEqual(log.count("Got response 200"), 1)