Add python and platform details to --version

On Flake8 2.x we added the information about the implementation,
version, and operating system to the --version output to make helping
users easier. In short they can pretty simply just give us the output
from

    flake8 --version

And we can get a lot of the information that we need.
This commit is contained in:
Ian Cordasco 2016-06-28 13:02:50 -05:00
parent 2d3e277b1e
commit c9fb680dff
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A
3 changed files with 24 additions and 3 deletions

View file

@ -4,6 +4,7 @@ import os
import pytest
from flake8 import utils
from flake8.options import manager
TEST_VERSION = '3.0.0b1'
@ -162,7 +163,8 @@ def test_update_version_string(optmanager):
assert optmanager.version == TEST_VERSION
assert (optmanager.parser.version == TEST_VERSION + ' ('
'Testing 100: 0.0.0, Testing 101: 0.0.0, Testing 300: 0.0.0)')
'Testing 100: 0.0.0, Testing 101: 0.0.0, Testing 300: 0.0.0) ' +
utils.get_python_version())
def test_generate_epilog(optmanager):