mirror of https://github.com/scrapy/scrapy.git
Fix cmdline profiling test on Windows by using proper path composing
This commit is contained in:
parent
034152961d
commit
22505a34a9
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue