Skip to content

Commit 6f3f574

Browse files
authored
Clarify error message to indicate that users should refer to the documentation of pytest-xdist (#1092)
1 parent 7cc6515 commit 6f3f574

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

changelog/1092.trivial

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update an error message to better indicate where users should go for more information.

src/xdist/report.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def report_collection_diff(
2323
"Different tests were collected between {from_id} and {to_id}. "
2424
"The difference is:\n"
2525
"{diff}\n"
26-
"To see why this happens see Known limitations in documentation"
26+
"To see why this happens see 'Known limitations' in documentation "
27+
"for pytest-xdist"
2728
).format(from_id=from_id, to_id=to_id, diff="\n".join(diff))
2829
msg = "\n".join(x.rstrip() for x in error_message.split("\n"))
2930
return msg

testing/test_dsession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ def test_report_collection_diff_different() -> None:
543543
"+XXX\n"
544544
" ccc\n"
545545
"-YYY\n"
546-
"To see why this happens see Known limitations in documentation"
546+
"To see why this happens see 'Known limitations' in documentation "
547+
"for pytest-xdist"
547548
)
548549

549550
msg = report_collection_diff(from_collection, to_collection, "1", "2")

0 commit comments

Comments
 (0)