diff --git a/_pytest/terminal.py b/_pytest/terminal.py index 63ceb200f..1b9f8905f 100644 --- a/_pytest/terminal.py +++ b/_pytest/terminal.py @@ -259,7 +259,7 @@ class TerminalReporter: if hasattr(sys, 'pypy_version_info'): verinfo = ".".join(map(str, sys.pypy_version_info[:3])) msg += "[pypy-%s-%s]" % (verinfo, sys.pypy_version_info[3]) - msg += " -- pytest-%s" % (pytest.__version__) + msg += " -- py-%s -- pytest-%s" % (py.__version__, pytest.__version__) if self.verbosity > 0 or self.config.option.debug or \ getattr(self.config.option, 'pastebin', None): msg += " -- " + str(sys.executable) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index b613137fe..b1755b0cf 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -408,8 +408,9 @@ class TestTerminalFunctional: verinfo = ".".join(map(str, py.std.sys.version_info[:3])) result.stdout.fnmatch_lines([ "*===== test session starts ====*", - "platform %s -- Python %s*" % ( - py.std.sys.platform, verinfo), # , py.std.sys.executable), + "platform %s -- Python %s* -- py-%s -- pytest-%s" % ( + py.std.sys.platform, verinfo, + py.__version__, pytest.__version__), "*test_header_trailer_info.py .", "=* 1 passed in *.[0-9][0-9] seconds *=", ])