{"action":"created","issue":{"url":"https://api.github.com/repos/aio-libs/aiokafka/issues/45","repository_url":"https://api.github.com/repos/aio-libs/aiokafka","labels_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/45/comments","events_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/45/events","html_url":"https://github.com/aio-libs/aiokafka/issues/45","id":166765330,"number":45,"title":"Can't run the test suite","user":{"login":"vortec","id":864772,"avatar_url":"https://avatars.githubusercontent.com/u/864772?v=3","gravatar_id":"","url":"https://api.github.com/users/vortec","html_url":"https://github.com/vortec","followers_url":"https://api.github.com/users/vortec/followers","following_url":"https://api.github.com/users/vortec/following{/other_user}","gists_url":"https://api.github.com/users/vortec/gists{/gist_id}","starred_url":"https://api.github.com/users/vortec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortec/subscriptions","organizations_url":"https://api.github.com/users/vortec/orgs","repos_url":"https://api.github.com/users/vortec/repos","events_url":"https://api.github.com/users/vortec/events{/privacy}","received_events_url":"https://api.github.com/users/vortec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Drizzt1991","id":916148,"avatar_url":"https://avatars.githubusercontent.com/u/916148?v=3","gravatar_id":"","url":"https://api.github.com/users/Drizzt1991","html_url":"https://github.com/Drizzt1991","followers_url":"https://api.github.com/users/Drizzt1991/followers","following_url":"https://api.github.com/users/Drizzt1991/following{/other_user}","gists_url":"https://api.github.com/users/Drizzt1991/gists{/gist_id}","starred_url":"https://api.github.com/users/Drizzt1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drizzt1991/subscriptions","organizations_url":"https://api.github.com/users/Drizzt1991/orgs","repos_url":"https://api.github.com/users/Drizzt1991/repos","events_url":"https://api.github.com/users/Drizzt1991/events{/privacy}","received_events_url":"https://api.github.com/users/Drizzt1991/received_events","type":"User","site_admin":false},"assignees":[{"login":"Drizzt1991","id":916148,"avatar_url":"https://avatars.githubusercontent.com/u/916148?v=3","gravatar_id":"","url":"https://api.github.com/users/Drizzt1991","html_url":"https://github.com/Drizzt1991","followers_url":"https://api.github.com/users/Drizzt1991/followers","following_url":"https://api.github.com/users/Drizzt1991/following{/other_user}","gists_url":"https://api.github.com/users/Drizzt1991/gists{/gist_id}","starred_url":"https://api.github.com/users/Drizzt1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drizzt1991/subscriptions","organizations_url":"https://api.github.com/users/Drizzt1991/orgs","repos_url":"https://api.github.com/users/Drizzt1991/repos","events_url":"https://api.github.com/users/Drizzt1991/events{/privacy}","received_events_url":"https://api.github.com/users/Drizzt1991/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-07-21T08:34:57Z","updated_at":"2016-08-09T14:55:17Z","closed_at":null,"body":"I'm trying to get the test suite running but no luck. I'm on OSX und use Python 3.5.\r\n\r\nWhen I run `make cov` as suggested, I get this error:\r\n\r\n```\r\n$ make cov\r\nextra=$(python -c \"import sys;sys.stdout.write('--exclude tests/test_pep492.py') if sys.version_info[:3] < (3, 5, 0) else sys.stdout.write('')\"); \\\r\n\tflake8 aiokafka tests $extra\r\ntests/test_pep492.py:23:17: F999 'break' outside loop\r\ntests/test_pep492.py:46:21: F999 'break' outside loop\r\n```\r\n\r\nIf i fix those by adding `# noqa` behind them, `flake8` passes but the tests can't seem to communicate with Docker:\r\n\r\n```\r\n$ KAFKA_VERSION=0.10.0.0 SCALA_VERSION=2.11 make cov\r\nextra=$(python -c \"import sys;sys.stdout.write('--exclude tests/test_pep492.py') if sys.version_info[:3] < (3, 5, 0) else sys.stdout.write('')\"); \\\r\n\tflake8 aiokafka tests $extra\r\n=========================================================================================================== test session starts ============================================================================================================\r\nplatform darwin -- Python 3.5.0, pytest-2.9.2, py-1.4.31, pluggy-0.3.1\r\nrootdir: /Users/fkochem/workspace/code/aiokafka, inifile:\r\nplugins: catchlog-1.2.2, cov-2.3.0\r\ncollected 55 items\r\n\r\ntests/test_client.py EEEEEEEEE\r\ntests/test_conn.py EEEEEEEE\r\ntests/test_consumer.py EEEEEEEEEEEEEE\r\ntests/test_coordinator.py EEEEEEEEE\r\ntests/test_fetcher.py ..\r\ntests/test_message_accumulator.py ..\r\ntests/test_pep492.py EEE\r\ntests/test_producer.py EEEEEEEE\r\n\r\n---------- coverage: platform darwin, python 3.5.0-final-0 -----------\r\nCoverage HTML written to dir htmlcov\r\n\r\n\r\n================================================================================================================== ERRORS ==================================================================================================================\r\n_________________________________________________________________________________________ ERROR at setup of TestAIOKafkaClient.test_init_with_csv __________________________________________________________________________________________\r\n\r\ndocker = <docker.client.Client object at 0x10a6decf8>\r\n\r\n    @pytest.fixture(scope='session')\r\n    def docker_ip_address(docker):\r\n        \"\"\"Returns IP address of the docker daemon service.\"\"\"\r\n        # Fallback docker daemon bridge name\r\n        ifname = 'docker0'\r\n        try:\r\n            for network in docker.networks():\r\n                _ifname = docker.networks()[0]['Options'].get(\r\n                    'com.docker.network.bridge.name')\r\n                if _ifname is not None:\r\n                    ifname = _ifname\r\n                    break\r\n        except libdocker.errors.InvalidVersion:\r\n            pass\r\n        s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\r\n        return socket.inet_ntoa(fcntl.ioctl(\r\n            s.fileno(),\r\n            0x8915,  # SIOCGIFADDR\r\n>           struct.pack('256s', ifname[:15].encode('utf-8')))[20:24])\r\nE       OSError: [Errno 6] Device not configured\r\n\r\ntests/conftest.py:42: OSError\r\n```\r\n\r\nAll tests error out with the same exception."},"comment":{"url":"https://api.github.com/repos/aio-libs/aiokafka/issues/comments/238579632","html_url":"https://github.com/aio-libs/aiokafka/issues/45#issuecomment-238579632","issue_url":"https://api.github.com/repos/aio-libs/aiokafka/issues/45","id":238579632,"user":{"login":"vortec","id":864772,"avatar_url":"https://avatars.githubusercontent.com/u/864772?v=3","gravatar_id":"","url":"https://api.github.com/users/vortec","html_url":"https://github.com/vortec","followers_url":"https://api.github.com/users/vortec/followers","following_url":"https://api.github.com/users/vortec/following{/other_user}","gists_url":"https://api.github.com/users/vortec/gists{/gist_id}","starred_url":"https://api.github.com/users/vortec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vortec/subscriptions","organizations_url":"https://api.github.com/users/vortec/orgs","repos_url":"https://api.github.com/users/vortec/repos","events_url":"https://api.github.com/users/vortec/events{/privacy}","received_events_url":"https://api.github.com/users/vortec/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T14:55:17Z","updated_at":"2016-08-09T14:55:17Z","body":"@kxepal Not anymore: https://docs.docker.com/docker-for-mac/"}}
{"actor":{"display_login":"vortec"}}