mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-25 13:03:47 +00:00
Merge pull request #2569 from scrapy/fix-project-util-test-osx
TST fixed ProjectUtilsTest on OS X
This commit is contained in:
commit
b15b4541d1
@ -31,5 +31,8 @@ class ProjectUtilsTest(unittest.TestCase):
|
||||
def test_data_path_inside_project(self):
|
||||
with inside_a_project() as proj_path:
|
||||
expected = os.path.join(proj_path, '.scrapy', 'somepath')
|
||||
self.assertEquals(expected, data_path('somepath'))
|
||||
self.assertEquals(
|
||||
os.path.realpath(expected),
|
||||
os.path.realpath(data_path('somepath'))
|
||||
)
|
||||
self.assertEquals('/absolute/path', data_path('/absolute/path'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user