Skip to content

Fix py2.6 test #254

Closed
Closed

Description

@m-u-xyz

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+'

Activity

  1. brian-brazil commented on Mar 11, 2018

    @brian-brazil
    Contributor

    Is this still happening with the latest version? I had thought this was fixed.

  2. hugovk commented on May 5, 2018

    @hugovk
    Contributor

    This was fixed in PR #227, merged on 19 Dec 2017.

  3. brian-brazil commented on May 5, 2018

    @brian-brazil
    Contributor

    Great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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