Skip to content

Commit

Permalink
Fixed secondary exception on collection error and bump to v1.4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarpas committed Oct 30, 2022
1 parent d8c0d13 commit faa3854
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pytest-testmon
version = 1.4.0
version = 1.4.1
license = AGPL
author_email = tibor.arpas@infinit.sk
author = Tibor Arpas, Tomas Matlovic
Expand Down
6 changes: 0 additions & 6 deletions testmon/pytest_testmon.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,6 @@ def pytest_ignore_collect(self, path, config):

@pytest.mark.trylast
def pytest_collection_modifyitems(self, session, config, items):
for item in items:
assert item.nodeid not in self.deselected_files, (
item.nodeid,
self.deselected_files,
)

selected = []
deselected = []
for item in items:
Expand Down
2 changes: 1 addition & 1 deletion testmon/testmon_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def get_batch_coverage_data(self):

nodes_files_lines = {}

if (
if self.cov and (
len(self.batched_nodeids) >= TEST_BATCH_SIZE
or self._next_nodeid is None
or self._interrupted_at
Expand Down

0 comments on commit faa3854

Please sign in to comment.