{"action":"created","issue":{"url":"https://api.github.com/repos/philpep/testinfra/issues/125","repository_url":"https://api.github.com/repos/philpep/testinfra","labels_url":"https://api.github.com/repos/philpep/testinfra/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/philpep/testinfra/issues/125/comments","events_url":"https://api.github.com/repos/philpep/testinfra/issues/125/events","html_url":"https://github.com/philpep/testinfra/issues/125","id":174697794,"number":125,"title":"testinfra (1.4.1) incompatible with py.test (3.0.2) (?)","user":{"login":"Heiko-san","id":10023733,"avatar_url":"https://avatars.githubusercontent.com/u/10023733?v=3","gravatar_id":"","url":"https://api.github.com/users/Heiko-san","html_url":"https://github.com/Heiko-san","followers_url":"https://api.github.com/users/Heiko-san/followers","following_url":"https://api.github.com/users/Heiko-san/following{/other_user}","gists_url":"https://api.github.com/users/Heiko-san/gists{/gist_id}","starred_url":"https://api.github.com/users/Heiko-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Heiko-san/subscriptions","organizations_url":"https://api.github.com/users/Heiko-san/orgs","repos_url":"https://api.github.com/users/Heiko-san/repos","events_url":"https://api.github.com/users/Heiko-san/events{/privacy}","received_events_url":"https://api.github.com/users/Heiko-san/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/philpep/testinfra/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-02T07:30:47Z","updated_at":"2016-09-03T16:52:28Z","closed_at":"2016-09-03T11:08:30Z","body":"when upgrading to the latest version of testinfra with the lastest version of py.test (see above) it seems parametrization is broken:\r\n```\r\ndef test_work(File):\r\n    assert True\r\n```\r\ntestinfra test.py\r\n```\r\n================================================================================================ test session starts ================================================================================================\r\nplatform linux2 -- Python 2.7.6, pytest-3.0.2, py-1.4.31, pluggy-0.3.1\r\nrootdir: /, inifile: \r\nplugins: testinfra-1.4.1\r\ncollected 0 items / 1 errors \r\n\r\n====================================================================================================== ERRORS =======================================================================================================\r\n_____________________________________________________________________________________________ ERROR collecting /test.py _____________________________________________________________________________________________\r\nusr/local/lib/python2.7/dist-packages/testinfra/plugin.py:128: in pytest_generate_tests\r\n    \"_testinfra_backend\", params, ids=ids, scope=\"module\")\r\nusr/local/lib/python2.7/dist-packages/_pytest/python.py:837: in parametrize\r\n    raise ValueError(msg % (saferepr(id_value), type(id_value).__name__))\r\nE   ValueError: ids must be list of strings, found: 'local' (type: unicode)\r\n============================================================================================== pytest-warning summary ===============================================================================================\r\nWP1 None Modules are already imported so can not be re-written: testinfra\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n==================================================================================== 1 pytest-warnings, 1 error in 0.22 seconds =====================================================================================\r\n```\r\nwhen downgrading py.test to 3.0.1 everything works fine\r\n\r\nwhen parameters are left away it will also work:\r\n```\r\ndef test_work():\r\n    assert True\r\n```\r\n\r\nwe could reproduce the issue on the following os using native python (python2) with testrinfra installed via pip:\r\n* debian 7,8\r\n* ubuntu 1204,1404,1604\r\n* centos 5,6,7\r\n* sles 11.4,12.1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/philpep/testinfra/issues/comments/244557218","html_url":"https://github.com/philpep/testinfra/issues/125#issuecomment-244557218","issue_url":"https://api.github.com/repos/philpep/testinfra/issues/125","id":244557218,"user":{"login":"retr0h","id":9895,"avatar_url":"https://avatars.githubusercontent.com/u/9895?v=3","gravatar_id":"","url":"https://api.github.com/users/retr0h","html_url":"https://github.com/retr0h","followers_url":"https://api.github.com/users/retr0h/followers","following_url":"https://api.github.com/users/retr0h/following{/other_user}","gists_url":"https://api.github.com/users/retr0h/gists{/gist_id}","starred_url":"https://api.github.com/users/retr0h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retr0h/subscriptions","organizations_url":"https://api.github.com/users/retr0h/orgs","repos_url":"https://api.github.com/users/retr0h/repos","events_url":"https://api.github.com/users/retr0h/events{/privacy}","received_events_url":"https://api.github.com/users/retr0h/received_events","type":"User","site_admin":false},"created_at":"2016-09-03T16:52:27Z","updated_at":"2016-09-03T16:52:27Z","body":"@philpep Would it make more sense to simply pin to `3.0.2`?  What if we run into another incompatibility issue with a future pytest release.  #126 doesn't really guard against that."}}
{"actor":{"display_login":"retr0h"}}