diff --git a/testing/test_dsession.py b/testing/test_dsession.py index c01f899..ac686fb 100644 --- a/testing/test_dsession.py +++ b/testing/test_dsession.py @@ -201,5 +201,4 @@ def test_report_collection_diff_different(): try: report_collection_diff(from_collection, to_collection, 1, 2) except AssertionError as e: - assert unicode(e) == error_message diff --git a/xdist/dsession.py b/xdist/dsession.py index 2fe785c..e6ca9c8 100644 --- a/xdist/dsession.py +++ b/xdist/dsession.py @@ -135,8 +135,12 @@ class LoadScheduling: # XXX allow nodes to have different collections first_node, col = list(self.node2collection.items())[0] for node, collection in self.node2collection.items(): - if collection != col: - report_collection_diff(col, collection, first_node.gateway.id, node.gateway.id) + report_collection_diff( + col, + collection, + first_node.gateway.id, + node.gateway.id, + ) self.pending = col if not col: