Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI after pytest-xdist update #2469

Merged
merged 1 commit into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ctapipe/core/tests/test_provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@


@pytest.fixture
def provenance():
def provenance(monkeypatch):
# the singleton nature of Provenance messes with
# the order-independence of the tests asserting
# the provenance contains the correct information
# so we monkeypatch back to an empty state here
prov = Provenance()
monkeypatch.setattr(prov, "_activities", [])
monkeypatch.setattr(prov, "_finished_activities", [])

prov.start_activity("test1")
prov.add_input_file("input.txt")
prov.add_output_file("output.txt")
Expand Down
Loading