Scrapy, a fast high-level web crawling & scraping framework for Python.
resolve path to search in error
Matthew Donoughefb26e6b65000
diff --git a/tests/test_commands.py b/tests/test_commands.pyindex 71ae85094..c7284b6c3 100644--- a/tests/test_commands.py+++ b/tests/test_commands.py@@ -547,7 +547,7 @@ class GenspiderStandaloneCommandTest(ProjectTest):self.assertNotEqual(file_contents_after, file_contents_before)else:p, out, err = self.proc('genspider', file_name, 'example.com')- self.assertIn(f"{Path(self.temp_path, file_name + '.py')} already exists", out)+ self.assertIn(f"{Path(self.temp_path, file_name + '.py').resolve()} already exists", out)modify_time_after = file_path.stat().st_mtimeself.assertEqual(modify_time_after, modify_time_before)file_contents_after = file_path.read_text()