[Pytest-commit] commit/pytest: flub: Include py version in the terminal output
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Wed Jan 22 11:27:28 CET 2014
1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/2c70f1b3ee81/
Changeset: 2c70f1b3ee81
User: flub
Date: 2014-01-22 11:27:15
Summary: Include py version in the terminal output
This can help to reproduce bugs when looking at the output pasted into
bug reports.
Affected #: 2 files
diff -r c22101120b20464ee112485a11891d6fa98fbe01 -r 2c70f1b3ee817c7945a7ebd3a671a777f97f8c91 _pytest/terminal.py
--- a/_pytest/terminal.py
+++ b/_pytest/terminal.py
@@ -259,7 +259,7 @@
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 -r c22101120b20464ee112485a11891d6fa98fbe01 -r 2c70f1b3ee817c7945a7ebd3a671a777f97f8c91 testing/test_terminal.py
--- a/testing/test_terminal.py
+++ b/testing/test_terminal.py
@@ -408,8 +408,9 @@
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 *=",
])
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list