From eb649d661d8326bb611ea2e8aefb7d7a862eba9e Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 15 May 2009 19:19:05 -0300 Subject: [PATCH] fixed bug with unittests data in win32 --- scrapy/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/tests/__init__.py b/scrapy/tests/__init__.py index a102cf994..46c662312 100644 --- a/scrapy/tests/__init__.py +++ b/scrapy/tests/__init__.py @@ -16,4 +16,4 @@ tests_datadir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'sample def get_testdata(*paths): """Return test data""" path = os.path.join(tests_datadir, *paths) - return open(path).read() + return open(path, 'rb').read()