Skip to content

Commit fc683ae

Browse files
committed
Don't use Path.resolve because the working dir becomes wrong on Windows. Fixes pytest-dev#5965
1 parent a52f791 commit fc683ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def get_config(args=None, plugins=None):
177177
config = Config(
178178
pluginmanager,
179179
invocation_params=Config.InvocationParams(
180-
args=args or (), plugins=plugins, dir=Path().resolve()
180+
args=args or (), plugins=plugins, dir=Path().absolute()
181181
),
182182
)
183183

@@ -736,7 +736,7 @@ def __init__(self, pluginmanager, *, invocation_params=None):
736736

737737
if invocation_params is None:
738738
invocation_params = self.InvocationParams(
739-
args=(), plugins=None, dir=Path().resolve()
739+
args=(), plugins=None, dir=Path().absolute()
740740
)
741741

742742
self.option = argparse.Namespace()

0 commit comments

Comments
 (0)