Skip to content

Fix py2.6 test #254

@smurfix

Description

@smurfix

If you intend to keep #219 open, at least please fix the python2.6 test.

$ python3
Python 3.6.4+ (default, Feb 12 2018, 08:25:03) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'3.6.4+ (default, Feb 12 2018, 08:25:03) \n[GCC 7.3.0]'
>>> 

  File "/src/home-assistant/homeassistant/components/prometheus.py", line 39, in setup
    import prometheus_client
  File "/src/home-assistant/.tox/py36/lib/python3.6/site-packages/prometheus_client/__init__.py", line 4, in <module>
    from . import exposition
  File "/src/home-assistant/.tox/py36/lib/python3.6/site-packages/prometheus_client/exposition.py", line 31, in <module>
    PYTHON26_OR_OLDER = tuple(int(val) for val in sys.version.split()[0].split('.')) < (2, 7, 0)
  File "/src/home-assistant/.tox/py36/lib/python3.6/site-packages/prometheus_client/exposition.py", line 31, in <genexpr>
    PYTHON26_OR_OLDER = tuple(int(val) for val in sys.version.split()[0].split('.')) < (2, 7, 0)
ValueError: invalid literal for int() with base 10: '4+'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions