diff --git a/pytest_sugar.py b/pytest_sugar.py index 2dfbc9f..f479bec 100644 --- a/pytest_sugar.py +++ b/pytest_sugar.py @@ -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(