Improve checkpyver error message

This commit is contained in:
Florian Bruhin 2017-10-16 09:24:31 +02:00
parent caeab959a5
commit 5307b97ca5
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ def check_python_version():
# pylint: disable=bad-builtin # pylint: disable=bad-builtin
version_str = '.'.join(map(str, sys.version_info[:3])) version_str = '.'.join(map(str, sys.version_info[:3]))
text = ("At least Python 3.5 is required to run qutebrowser, but " + text = ("At least Python 3.5 is required to run qutebrowser, but " +
version_str + " is installed!\n") "it's running with " + version_str + ".\n")
if Tk and '--no-err-windows' not in sys.argv: # pragma: no cover if Tk and '--no-err-windows' not in sys.argv: # pragma: no cover
root = Tk() root = Tk()
root.withdraw() root.withdraw()

View File

@ -28,8 +28,8 @@ import pytest
from qutebrowser.misc import checkpyver from qutebrowser.misc import checkpyver
TEXT = (r"At least Python 3.5 is required to run qutebrowser, but " TEXT = (r"At least Python 3.5 is required to run qutebrowser, but it's running "
r"\d+\.\d+\.\d+ is installed!\n") r"with \d+\.\d+\.\d+.\n")
@pytest.mark.not_frozen @pytest.mark.not_frozen