{"action":"created","issue":{"url":"https://api.github.com/repos/PyCQA/astroid/issues/79","repository_url":"https://api.github.com/repos/PyCQA/astroid","labels_url":"https://api.github.com/repos/PyCQA/astroid/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/PyCQA/astroid/issues/79/comments","events_url":"https://api.github.com/repos/PyCQA/astroid/issues/79/events","html_url":"https://github.com/PyCQA/astroid/issues/79","id":121166100,"number":79,"title":"[easy] testdata (Python version specific) are installed without considering the interpreter","user":{"login":"pylint-bot","id":16198247,"avatar_url":"https://avatars.githubusercontent.com/u/16198247?v=3","gravatar_id":"","url":"https://api.github.com/users/pylint-bot","html_url":"https://github.com/pylint-bot","followers_url":"https://api.github.com/users/pylint-bot/followers","following_url":"https://api.github.com/users/pylint-bot/following{/other_user}","gists_url":"https://api.github.com/users/pylint-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pylint-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pylint-bot/subscriptions","organizations_url":"https://api.github.com/users/pylint-bot/orgs","repos_url":"https://api.github.com/users/pylint-bot/repos","events_url":"https://api.github.com/users/pylint-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pylint-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PyCQA/astroid/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-01T21:28:07Z","updated_at":"2016-02-19T16:26:09Z","closed_at":"2016-02-19T16:26:09Z","body":"Originally reported by: **BitBucket: [sandrotosi](http://bitbucket.org/sandrotosi), GitHub: @sandrotosi?**\n\n----------------------------------------\n\nHello,\ntestdata files (which are depending on the Python version) are installed all the time, so you end up with py3k specific file in a python2 installation dir and vice versa, and in distro (like Debian) byte-compiling python files are installation, it generates error:\n\n\n```\n#!python\nSetting up python3-astroid (1.3.4-1) ...\n  File \"/usr/lib/python3/dist-packages/astroid/tests/testdata/python2/data/all.py\", line 7\n    def func(): print 'yo'\n                         ^\nSyntaxError: invalid syntax\n\n  File \"/usr/lib/python3/dist-packages/astroid/tests/testdata/python2/data/module.py\", line 22\n    print '!!!'\n              ^\nSyntaxError: Missing parentheses in call to 'print'\n\n  File \"/usr/lib/python3/dist-packages/astroid/tests/testdata/python2/data/module2.py\", line 73\n    assert `1`\n\n```\n\nand \n\n\n```\n#!python\n\nSetting up python-astroid (1.3.4-1) ...\n  File \"/usr/lib/python2.7/dist-packages/astroid/tests/testdata/python3/data/module.py\", line 55\n    print('yo', end=' ')\n                   ^\nSyntaxError: invalid syntax\n\n  File \"/usr/lib/python2.7/dist-packages/astroid/tests/testdata/python3/data/module2.py\", line 100\n    print('bonjour', file=stream)\n                         ^\nSyntaxError: invalid syntax\n\n```\n\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/logilab/astroid/issue/79\n"},"comment":{"url":"https://api.github.com/repos/PyCQA/astroid/issues/comments/186286413","html_url":"https://github.com/PyCQA/astroid/issues/79#issuecomment-186286413","issue_url":"https://api.github.com/repos/PyCQA/astroid/issues/79","id":186286413,"user":{"login":"PCManticore","id":448166,"avatar_url":"https://avatars.githubusercontent.com/u/448166?v=3","gravatar_id":"","url":"https://api.github.com/users/PCManticore","html_url":"https://github.com/PCManticore","followers_url":"https://api.github.com/users/PCManticore/followers","following_url":"https://api.github.com/users/PCManticore/following{/other_user}","gists_url":"https://api.github.com/users/PCManticore/gists{/gist_id}","starred_url":"https://api.github.com/users/PCManticore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCManticore/subscriptions","organizations_url":"https://api.github.com/users/PCManticore/orgs","repos_url":"https://api.github.com/users/PCManticore/repos","events_url":"https://api.github.com/users/PCManticore/events{/privacy}","received_events_url":"https://api.github.com/users/PCManticore/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T16:26:09Z","updated_at":"2016-02-19T16:26:09Z","body":"We now have a testdata that works for both Python 2 and Python 3 (in 2.0 branch)."}}