Skip to content

Commit 99420f6

Browse files
committed
Fix comment
1 parent 8f777c7 commit 99420f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pytest_random_order.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ def pytest_collection_modifyitems(session, config, items):
131131
_shuffle_items(items, key=_random_order_item_keys[bucket_type], disable=_disable)
132132

133133
except Exception as e:
134-
# If the number of items is still the same, we assume that we haven't messed up too hard
135-
# and we can just return the list of items as it is.
134+
# See the finally block -- we only fail if we have lost user's tests.
136135
_, _, exc_tb = sys.exc_info()
137136
failure = 'pytest-random-order plugin has failed with {!r}:\n{}'.format(
138137
e, ''.join(traceback.format_tb(exc_tb, 10))

0 commit comments

Comments
 (0)