From 93d82648e59a1a211c114d0b8be2d76e0d79b582 Mon Sep 17 00:00:00 2001 From: Matthew Donoughe Date: Wed, 19 Oct 2022 08:08:21 -0400 Subject: [PATCH] resolve this path too --- tests/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()