Skip to content

Commit a5ac789

Browse files
committed
Skip collection of MarkGenerator when using from pytask import mark. (#576)
1 parent d0f6542 commit a5ac789

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/source/changes.md

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ releases are available on [PyPI](https://pypi.org/project/pytask) and
2424
remote files.
2525
- {pull}`573` removes the `pytask_execute_create_scheduler` hook.
2626

27+
## 0.4.6 - 2024-03-13
28+
29+
- {pull}`576` fixes accidentally collecting `pytask.MarkGenerator` when using
30+
`from pytask import mark`.
31+
2732
## 0.4.5 - 2024-01-09
2833

2934
- {pull}`515` enables tests with graphviz in CI. Thanks to {user}`NickCrews`.

tests/test_collect.py

+1
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ def __getattr__(self, name):
539539

540540
result = runner.invoke(cli, [tmp_path.as_posix()])
541541
assert result.exit_code == ExitCode.OK
542+
assert "attr_that_definitely_does_not_exist" not in result.output
542543

543544

544545
@pytest.mark.end_to_end()

0 commit comments

Comments
 (0)