Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

resolve this path too

Matthew Donoughe93d82648e59a
diff --git a/tests/test_commands.py b/tests/test_commands.py
index c7284b6c3..b61f314ec 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -492,7 +492,7 @@ class GenspiderCommandTest(CommandTest):
self.assertNotEqual(file_contents_after, file_contents_before)
else:
p, out, err = self.proc('genspider', file_name, 'example.com')
- self.assertIn(f"{file_path} already exists", out)
+ self.assertIn(f"{file_path.resolve()} already exists", out)
modify_time_after = file_path.stat().st_mtime
self.assertEqual(modify_time_after, modify_time_before)
file_contents_after = file_path.read_text()