Skip to content

Commit

Permalink
Fix compatibility with pytest 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed May 31, 2020
1 parent fdd98ea commit 39e9ac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytest_sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def pytest_collectreport(self, report):
self.print_failure(report)

def pytest_sessionstart(self, session):
self._session = session
self._sessionstarttime = py.std.time.time()
verinfo = ".".join(map(str, sys.version_info[:3]))
self.write_line(
Expand Down

0 comments on commit 39e9ac4

Please sign in to comment.