Skip to content

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

changing extension in test from csv to txt (not all systems support the text/csv mimetype)

Pablo Hoffmanc3d61dc99926
diff --git a/scrapy/trunk/scrapy/tests/test_responsetypes.py b/scrapy/trunk/scrapy/tests/test_responsetypes.py
index 4941314ee..4a5bd40cc 100644
--- a/scrapy/trunk/scrapy/tests/test_responsetypes.py
+++ b/scrapy/trunk/scrapy/tests/test_responsetypes.py
@@ -52,7 +52,7 @@ class ResponseTypesTest(unittest.TestCase):
def test_from_headers(self):
mappings = [
({'Content-Type': ['text/html; charset=utf-8']}, HtmlResponse),
- ({'Content-Type': ['application/octet-stream'], 'Content-Disposition': ['attachment; filename=data.csv']}, TextResponse),
+ ({'Content-Type': ['application/octet-stream'], 'Content-Disposition': ['attachment; filename=data.txt']}, TextResponse),
]
for source, cls in mappings:
source = Headers(source)