Skip to content

Commit

Permalink
Sqlalchemy has an internal pytest plugin which manipulates items in i…
Browse files Browse the repository at this point in the history
…ts pytest_collection_modifyitems, we want to come afterwards to be compatible.
  • Loading branch information
tarpas committed Jun 30, 2018
1 parent a7855a3 commit 2f7a9e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testmon/pytest_testmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def pytest_ignore_collect(self, path, config):
self.collection_ignored.update(self.testmon_data.f_tests[strpath])
return True

@pytest.mark.trylast
def pytest_collection_modifyitems(self, session, config, items):
self.testmon_data.collect_garbage(retain=self.collection_ignored.union(set([item.nodeid for item in items])))

Expand Down

0 comments on commit 2f7a9e8

Please sign in to comment.