{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/1005","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1005/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1005/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1005/events","html_url":"https://github.com/pytest-dev/pytest/issues/1005","id":106491239,"number":1005,"title":"Error in Python 3.5.0","user":{"login":"lyapun","id":660023,"avatar_url":"https://avatars.githubusercontent.com/u/660023?v=3","gravatar_id":"","url":"https://api.github.com/users/lyapun","html_url":"https://github.com/lyapun","followers_url":"https://api.github.com/users/lyapun/followers","following_url":"https://api.github.com/users/lyapun/following{/other_user}","gists_url":"https://api.github.com/users/lyapun/gists{/gist_id}","starred_url":"https://api.github.com/users/lyapun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyapun/subscriptions","organizations_url":"https://api.github.com/users/lyapun/orgs","repos_url":"https://api.github.com/users/lyapun/repos","events_url":"https://api.github.com/users/lyapun/events{/privacy}","received_events_url":"https://api.github.com/users/lyapun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T06:40:38Z","updated_at":"2015-09-15T06:44:09Z","closed_at":"2015-09-15T06:44:09Z","body":"Hello!\r\n\r\nI tried to upgrade one of my project to use Python 3.5.0, and tried to execute my tests, using py.test, but I got such error, which is not reproducable with Python 3.4.3:\r\n\r\n```\r\n ✗ py.test -x\r\n================================================= test session starts =================================================\r\nplatform darwin -- Python 3.5.0 -- py-1.4.30 -- pytest-2.7.2\r\nrootdir: /Users/tarasliapun/Work/turfmapp-hq/ingame, inifile: \r\nplugins: cov\r\ncollecting 2 items / 1 errors\r\n======================================================= ERRORS ========================================================\r\n_______________________________________ ERROR collecting tests/test_rewards.py ________________________________________\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/py/_path/local.py:650: in pyimport\r\n    __import__(modname)\r\n<frozen importlib._bootstrap>:969: in _find_and_load\r\n    ???\r\n<frozen importlib._bootstrap>:954: in _find_and_load_unlocked\r\n    ???\r\n<frozen importlib._bootstrap>:892: in _find_spec\r\n    ???\r\n<frozen importlib._bootstrap>:873: in _find_spec_legacy\r\n    ???\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:137: in find_module\r\n    source_stat, co = _rewrite_test(state, fn_pypath)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:278: in _rewrite_test\r\n    rewrite_asserts(tree)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:336: in rewrite_asserts\r\n    AssertionRewriter().run(mod)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:557: in run\r\n    new.extend(self.visit(child))\r\n../../../.pyenv/versions/3.5.0/lib/python3.5/ast.py:245: in visit\r\n    return visitor(node)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:665: in visit_Assert\r\n    top_condition, explanation = self.visit(assert_.test)\r\n../../../.pyenv/versions/3.5.0/lib/python3.5/ast.py:245: in visit\r\n    return visitor(node)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:796: in visit_Compare\r\n    left_res, left_expl = self.visit(comp.left)\r\n../../../.pyenv/versions/3.5.0/lib/python3.5/ast.py:245: in visit\r\n    return visitor(node)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:757: in visit_Call\r\n    new_func, func_expl = self.visit(call.func)\r\n../../../.pyenv/versions/3.5.0/lib/python3.5/ast.py:245: in visit\r\n    return visitor(node)\r\n../../../.pyenv/versions/turfmapp-mc/lib/python3.5/site-packages/_pytest/assertion/rewrite.py:700: in visit_Name\r\n    locs = ast.Call(self.builtin(\"locals\"), [], [], None, None)\r\nE   TypeError: Call constructor takes either 0 or 3 positional arguments\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Session.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n=============================================== 1 error in 0.61 seconds ===============================================\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/140296020","html_url":"https://github.com/pytest-dev/pytest/issues/1005#issuecomment-140296020","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/1005","id":140296020,"user":{"login":"The-Compiler","id":625793,"avatar_url":"https://avatars.githubusercontent.com/u/625793?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Compiler","html_url":"https://github.com/The-Compiler","followers_url":"https://api.github.com/users/The-Compiler/followers","following_url":"https://api.github.com/users/The-Compiler/following{/other_user}","gists_url":"https://api.github.com/users/The-Compiler/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Compiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Compiler/subscriptions","organizations_url":"https://api.github.com/users/The-Compiler/orgs","repos_url":"https://api.github.com/users/The-Compiler/repos","events_url":"https://api.github.com/users/The-Compiler/events{/privacy}","received_events_url":"https://api.github.com/users/The-Compiler/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T06:44:09Z","updated_at":"2015-09-15T06:44:09Z","body":"This was already fixed in #801 - there should be a new release somewhen this week.\r\n\r\nAs a workaround, you can use `--assert=plain`."}}