From 22c3aaddc20ad74d3633738093f685fd6dbb998a Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Sun, 27 Jun 2021 17:03:22 +0200 Subject: [PATCH] tests/command/init: fix incorrect patching Relates-to: #2899 --- tests/console/commands/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/console/commands/test_init.py b/tests/console/commands/test_init.py index 2d6301e05a0..b1e12d9fd1f 100644 --- a/tests/console/commands/test_init.py +++ b/tests/console/commands/test_init.py @@ -87,7 +87,7 @@ def test_noninteractive(app, mocker, poetry, repo, tmp_path): repo.add_package(get_package("pytest", "3.6.0")) - p = mocker.patch("poetry.utils._compat.Path.cwd") + p = mocker.patch("pathlib.Path.cwd") p.return_value = tmp_path tester = CommandTester(command)