Skip to content

Commit f2e0c74

Browse files
committed
Code review suggestions
1 parent d856f4e commit f2e0c74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/_pytest/hookspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def pytest_report_serialize(config, report):
389389
In the future it might become part of the public hook API.
390390
391391
Serializes the given report object into a data structure suitable for sending
392-
over the wire, or converted to JSON.
392+
over the wire, e.g. converted to JSON.
393393
"""
394394

395395

@@ -406,7 +406,7 @@ def pytest_report_unserialize(config, data):
406406
407407
In the future it might become part of the public hook API.
408408
409-
Restores a report object previously serialized with pytest_report_serialize().;
409+
Restores a report object previously serialized with pytest_report_serialize().
410410
"""
411411

412412

src/_pytest/reports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def _report_unserialization_failure(type_name, report_class, reportdict):
267267
pprint(reportdict, stream=stream)
268268
pprint("Please report this bug at %s" % url, stream=stream)
269269
pprint("-" * 100, stream=stream)
270-
assert 0, stream.getvalue()
270+
raise RuntimeError(stream.getvalue())
271271

272272

273273
class TestReport(BaseReport):

0 commit comments

Comments
 (0)