1
0
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:
Daniel Graña 2017-02-20 11:15:21 -03:00 committed by GitHub
commit b15b4541d1

View File

@ -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'))