mirror of https://github.com/scrapy/scrapy.git
Maybe the problem is not in the code after all
This commit is contained in:
parent
5f4df622a1
commit
24ba5a71ac
|
|
@ -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):
|
def get_testdata(*paths):
|
||||||
"""Return test data"""
|
"""Return test data"""
|
||||||
path = os.path.join(tests_datadir, *paths)
|
path = os.path.join(tests_datadir, *paths)
|
||||||
with open(path, 'rb', newline='') as f:
|
with open(path, 'rb') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue