1 new commit in pytest:

https://bitbucket.org/pytest-dev/pytest/commits/88488f8bb2eb/
Changeset:   88488f8bb2eb
User:        flub
Date:        2015-05-31 19:31:31+00:00
Summary:     Use platform.python_version() to show Python version number

This results in something like "3.5.0b2" for non-final releases
while still being "3.5.0" for final releases.
Affected #:  1 file

diff -r 1a913c55c66d6841c113df2247942433e693ce0f -r 
88488f8bb2eb46b19c67d595b1d2e220e89c418a _pytest/terminal.py
--- a/_pytest/terminal.py
+++ b/_pytest/terminal.py
@@ -7,6 +7,7 @@
 import py
 import sys
 import time
+import platform
 
 
 def pytest_addoption(parser):
@@ -274,7 +275,7 @@
         if not self.showheader:
             return
         self.write_sep("=", "test session starts", bold=True)
-        verinfo = ".".join(map(str, sys.version_info[:3]))
+        verinfo = platform.python_version()
         msg = "platform %s -- Python %s" % (sys.platform, verinfo)
         if hasattr(sys, 'pypy_version_info'):
             verinfo = ".".join(map(str, sys.pypy_version_info[:3]))

Repository URL: https://bitbucket.org/pytest-dev/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.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to