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:
parent
5f4df622a1
commit
24ba5a71ac
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
tests/sample_data/** binary
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user