Skip to content

Commit e4eec34

Browse files
committed
Note that tests from xdist reference the correct xdist issues
1 parent 6457742 commit e4eec34

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

testing/test_reports.py

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33

44

55
class TestReportSerialization(object):
6-
"""
7-
All the tests in this class came originally from test_remote.py in xdist (ca03269).
8-
"""
9-
106
def test_xdist_longrepr_to_str_issue_241(self, testdir):
7+
"""
8+
Regarding issue pytest-xdist#241
9+
10+
This test came originally from test_remote.py in xdist (ca03269).
11+
"""
1112
testdir.makepyfile(
1213
"""
1314
import os
@@ -28,6 +29,10 @@ def test_b(): pass
2829
assert test_b_call._to_json()["longrepr"] is None
2930

3031
def test_xdist_report_longrepr_reprcrash_130(self, testdir):
32+
"""Regarding issue pytest-xdist#130
33+
34+
This test came originally from test_remote.py in xdist (ca03269).
35+
"""
3136
reprec = testdir.inline_runsource(
3237
"""
3338
import py
@@ -59,6 +64,10 @@ def test_fail(): assert False, 'Expected Message'
5964
assert added_section in a.longrepr.sections
6065

6166
def test_reprentries_serialization_170(self, testdir):
67+
"""Regarding issue pytest-xdist#170
68+
69+
This test came originally from test_remote.py in xdist (ca03269).
70+
"""
6271
from _pytest._code.code import ReprEntry
6372

6473
reprec = testdir.inline_runsource(
@@ -90,6 +99,10 @@ def test_repr_entry():
9099
assert rep_entries[i].style == a_entries[i].style
91100

92101
def test_reprentries_serialization_196(self, testdir):
102+
"""Regarding issue pytest-xdist#196
103+
104+
This test came originally from test_remote.py in xdist (ca03269).
105+
"""
93106
from _pytest._code.code import ReprEntryNative
94107

95108
reprec = testdir.inline_runsource(
@@ -113,6 +126,9 @@ def test_repr_entry_native():
113126
assert rep_entries[i].lines == a_entries[i].lines
114127

115128
def test_itemreport_outcomes(self, testdir):
129+
"""
130+
This test came originally from test_remote.py in xdist (ca03269).
131+
"""
116132
reprec = testdir.inline_runsource(
117133
"""
118134
import py
@@ -145,6 +161,7 @@ def test_xfail_imperative():
145161
assert newrep.longreprtext == rep.longreprtext
146162

147163
def test_collectreport_passed(self, testdir):
164+
"""This test came originally from test_remote.py in xdist (ca03269)."""
148165
reprec = testdir.inline_runsource("def test_func(): pass")
149166
reports = reprec.getreports("pytest_collectreport")
150167
for rep in reports:
@@ -155,6 +172,7 @@ def test_collectreport_passed(self, testdir):
155172
assert newrep.skipped == rep.skipped
156173

157174
def test_collectreport_fail(self, testdir):
175+
"""This test came originally from test_remote.py in xdist (ca03269)."""
158176
reprec = testdir.inline_runsource("qwe abc")
159177
reports = reprec.getreports("pytest_collectreport")
160178
assert reports
@@ -168,6 +186,7 @@ def test_collectreport_fail(self, testdir):
168186
assert newrep.longrepr == str(rep.longrepr)
169187

170188
def test_extended_report_deserialization(self, testdir):
189+
"""This test came originally from test_remote.py in xdist (ca03269)."""
171190
reprec = testdir.inline_runsource("qwe abc")
172191
reports = reprec.getreports("pytest_collectreport")
173192
assert reports

0 commit comments

Comments
 (0)