Skip to content

Commit 78f4aad

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 55123ac commit 78f4aad

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

changelog/14454.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fixed a regression where :option:`-c` pointing to a config file in a sub-directory would set :confval:`rootdir` to the config file's parent directory instead of the invocation directory, breaking conftest discovery. Patch by :user:`EternalRights`.
1+
Fixed a regression where :option:`-c` pointing to a config file in a sub-directory would set :confval:`rootdir` to the config file's parent directory instead of the invocation directory, breaking conftest discovery. Patch by :user:`EternalRights`.

testing/test_config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,8 +2052,7 @@ def test_config_in_subdir_does_not_change_rootdir(
20522052
invocation_dir=Path.cwd(),
20532053
)
20542054
assert rootpath == tmp_path, (
2055-
f"rootdir should be invocation_dir ({tmp_path}), "
2056-
f"got {rootpath}"
2055+
f"rootdir should be invocation_dir ({tmp_path}), got {rootpath}"
20572056
)
20582057
assert found_inipath == inipath
20592058

0 commit comments

Comments
 (0)