Skip to content

Commit 5639f8d

Browse files
committed
try using fix from pytest-dev/pytest#13426
looks lik all good, allows to get rid of horrible conftest hacks!
1 parent 515145a commit 5639f8d

File tree

3 files changed

+2
-58
lines changed

3 files changed

+2
-58
lines changed

conftest.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ optional = []
2626

2727
[dependency-groups]
2828
testing = [
29-
"pytest",
29+
"pytest @ git+https://github.com/karlicoss/pytest@pyargs-namespace-packages",
30+
# "pytest",
3031
"ruff",
3132
"mypy",
3233
"lxml", # for mypy html coverage

tests/test_pytest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def fixture() -> Iterator[Path]:
3636
with TemporaryDirectory() as td:
3737
root = Path(td)
3838
shutil.copy(GIT_ROOT / 'pytest.ini', root / 'pytest.ini')
39-
shutil.copy(GIT_ROOT / 'conftest.py', root / 'conftest.py')
40-
# TODO overwrite consider namesspace pkgs here for now??
4139
shutil.copytree(THISDIR / 'testdata' / 'src', root / 'src')
4240
with contextlib_chdir(root):
4341
yield root

0 commit comments

Comments
 (0)