{"action":"opened","issue":{"url":"https://api.github.com/repos/openfisca/openfisca-core/issues/692","repository_url":"https://api.github.com/repos/openfisca/openfisca-core","labels_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/692/labels{/name}","comments_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/692/comments","events_url":"https://api.github.com/repos/openfisca/openfisca-core/issues/692/events","html_url":"https://github.com/openfisca/openfisca-core/issues/692","id":343541094,"node_id":"MDU6SXNzdWUzNDM1NDEwOTQ=","number":692,"title":"Failure on Core 23.3.0 make test with python 3.5.5","user":{"login":"sandcha","id":6567910,"node_id":"MDQ6VXNlcjY1Njc5MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/6567910?v=4","gravatar_id":"","url":"https://api.github.com/users/sandcha","html_url":"https://github.com/sandcha","followers_url":"https://api.github.com/users/sandcha/followers","following_url":"https://api.github.com/users/sandcha/following{/other_user}","gists_url":"https://api.github.com/users/sandcha/gists{/gist_id}","starred_url":"https://api.github.com/users/sandcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandcha/subscriptions","organizations_url":"https://api.github.com/users/sandcha/orgs","repos_url":"https://api.github.com/users/sandcha/repos","events_url":"https://api.github.com/users/sandcha/events{/privacy}","received_events_url":"https://api.github.com/users/sandcha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T08:45:53Z","updated_at":"2018-07-23T08:45:53Z","closed_at":null,"author_association":"COLLABORATOR","body":"Hi there!\r\n\r\nI really enjoy OpenFisca, but I recently encountered an issue.\r\n\r\n### Here is what I did:\r\nOn openfisca-core v.`23.3.0` master branch, I ran:\r\n`make test`\r\n\r\nin a virtualenv where I did:\r\n```\r\npip install -U pip wheel\r\npip install -e .[test]\r\n```\r\n\r\n### Here is what I expected to happen:\r\n```\r\n[openfisca-core]$ make test\r\nflake8\r\nnosetests\r\n....................................................................................................................................................................................................................................................................................................................................\r\n----------------------------------------------------------------------\r\nRan 324 tests in 5.625s\r\n\r\nOK\r\n```\r\n\r\n### Here is what actually happened:\r\n```\r\nc690-py35[openfisca-core]$ make test\r\nflake8\r\nnosetests\r\n...............................................................................................................................................................................................................................................EEEEEEEEEEEEEEEEEEEEEEEEEEE.......E..EEE.........EEEEE...\r\n======================================================================\r\nERROR: web_api.basic_case.test_calculate.test_responses('{\"a\" : \"x\", \"b\"}', <HTTPStatus.BAD_REQUEST: 400>, 'error', 'Invalid JSON')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/site-packages/nose/case.py\", line 198, in runTest\r\n    self.test(*self.arg)\r\n  File \"/Users/sch/Dev/github/openfisca-core/tests/web_api/basic_case/test_calculate.py\", line 26, in check_response\r\n    json_response = json.loads(response.data)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py\", line 312, in loads\r\n    s.__class__.__name__))\r\nTypeError: the JSON object must be str, not 'bytes'\r\n```\r\n...\r\n```\r\n======================================================================\r\nERROR: Failure: TypeError (the JSON object must be str, not 'bytes')\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/site-packages/nose/failure.py\", line 39, in runTest\r\n    raise self.exc_val.with_traceback(self.tb)\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/site-packages/nose/loader.py\", line 418, in loadTestsFromName\r\n    addr.filename, addr.module)\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/site-packages/nose/importer.py\", line 47, in importFromPath\r\n    return self.importFromDir(dir_path, fqname)\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/site-packages/nose/importer.py\", line 94, in importFromDir\r\n    mod = load_module(part_fqname, fh, filename, desc)\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/imp.py\", line 235, in load_module\r\n    return load_source(name, filename, file)\r\n  File \"/Users/sch/.local/share/virtualenvs/c690-py35/lib/python3.5/imp.py\", line 172, in load_source\r\n    module = _load(spec)\r\n  File \"<frozen importlib._bootstrap>\", line 693, in _load\r\n  File \"<frozen importlib._bootstrap>\", line 673, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 697, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\r\n  File \"/Users/sch/Dev/github/openfisca-core/tests/web_api/basic_case/test_variables.py\", line 40, in <module>\r\n    input_variable = json.loads(input_variable_response.data)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py\", line 312, in loads\r\n    s.__class__.__name__))\r\nTypeError: the JSON object must be str, not 'bytes'\r\n\r\n----------------------------------------------------------------------\r\nRan 296 tests in 6.086s\r\n\r\nFAILED (errors=36)\r\nmake: *** [test] Error 1\r\n```\r\n### Here is data (or links to it) that can help you reproduce this issue:\r\n\r\n```\r\nc690-py35[openfisca-core]$ python --version\r\nPython 3.5.5\r\n```\r\n\r\n\r\n## Context\r\n\r\nI identify more as a:\r\n- Developer _(I create tools that use the existing OpenFisca code)_.\r\n\r\n"}}
{"actor":{"display_login":"sandcha"}}