1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 20:04:09 +00:00

fixed bug with unittests data in win32

This commit is contained in:
Pablo Hoffman 2009-05-15 19:19:05 -03:00
parent ba48a24bb7
commit eb649d661d

View File

@ -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()