1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-06 09:07:32 +00:00

Maybe the problem is not in the code after all

This commit is contained in:
Adrián Chaves 2020-08-13 06:35:09 +02:00
parent 5f4df622a1
commit 24ba5a71ac
2 changed files with 2 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
tests/sample_data/** binary

View File

@ -28,5 +28,5 @@ tests_datadir = os.path.join(os.path.abspath(os.path.dirname(__file__)),
def get_testdata(*paths):
"""Return test data"""
path = os.path.join(tests_datadir, *paths)
with open(path, 'rb', newline='') as f:
with open(path, 'rb') as f:
return f.read()