Skip to content

Commit

Permalink
Don't use Path.resolve because the working dir becomes wrong on Windo…
Browse files Browse the repository at this point in the history
…ws. Fixes pytest-dev#5965
  • Loading branch information
fabioz committed Jan 21, 2020
1 parent a52f791 commit f5c9334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_pytest/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_config(args=None, plugins=None):
config = Config(
pluginmanager,
invocation_params=Config.InvocationParams(
args=args or (), plugins=plugins, dir=Path().resolve()
args=args or (), plugins=plugins, dir=Path().absolute()
),
)

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

if invocation_params is None:
invocation_params = self.InvocationParams(
args=(), plugins=None, dir=Path().resolve()
args=(), plugins=None, dir=Path().absolute()
)

self.option = argparse.Namespace()
Expand Down

0 comments on commit f5c9334

Please sign in to comment.