Code review suggestions

This commit is contained in:
Bruno Oliveira 2019-03-21 18:39:12 -03:00
parent d856f4e51f
commit f2e0c740d3
2 changed files with 3 additions and 3 deletions

View File

@ -389,7 +389,7 @@ def pytest_report_serialize(config, report):
In the future it might become part of the public hook API.
Serializes the given report object into a data structure suitable for sending
over the wire, or converted to JSON.
over the wire, e.g. converted to JSON.
"""
@ -406,7 +406,7 @@ def pytest_report_unserialize(config, data):
In the future it might become part of the public hook API.
Restores a report object previously serialized with pytest_report_serialize().;
Restores a report object previously serialized with pytest_report_serialize().
"""

View File

@ -267,7 +267,7 @@ def _report_unserialization_failure(type_name, report_class, reportdict):
pprint(reportdict, stream=stream)
pprint("Please report this bug at %s" % url, stream=stream)
pprint("-" * 100, stream=stream)
assert 0, stream.getvalue()
raise RuntimeError(stream.getvalue())
class TestReport(BaseReport):