Fix cmdline profiling test on Windows by using proper path composing

This commit is contained in:
Jakob de Maeyer 2016-02-03 18:42:51 +00:00 committed by Daniel Graña
parent 034152961d
commit 22505a34a9
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ class CmdlineTest(unittest.TestCase):
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)