mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 23:43:59 +00:00
fixed bug with unittests data in win32
This commit is contained in:
parent
ba48a24bb7
commit
eb649d661d
@ -16,4 +16,4 @@ tests_datadir = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'sample
|
|||||||
def get_testdata(*paths):
|
def get_testdata(*paths):
|
||||||
"""Return test data"""
|
"""Return test data"""
|
||||||
path = os.path.join(tests_datadir, *paths)
|
path = os.path.join(tests_datadir, *paths)
|
||||||
return open(path).read()
|
return open(path, 'rb').read()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user