Skip to content

Commit

Permalink
Fix cmdline profiling test on Windows by using proper path composing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemaeyer authored and dangra committed Aug 15, 2018
1 parent 0341529 commit 22505a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_cmdline/__init__.py
Expand Up @@ -52,7 +52,8 @@ def test_profiling(self):
stats.print_stats()
out.seek(0)
stats = out.read()
self.assertIn('scrapy/commands/version.py', stats)
self.assertIn(os.path.join('scrapy', 'commands', 'version.py'),
stats)
self.assertIn('tottime', stats)
finally:
shutil.rmtree(path)
Expand Down

0 comments on commit 22505a3

Please sign in to comment.