{"action":"created","issue":{"url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2191","repository_url":"https://api.github.com/repos/inveniosoftware/invenio","labels_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2191/labels{/name}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2191/comments","events_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2191/events","html_url":"https://github.com/inveniosoftware/invenio/issues/2191","id":41664514,"number":2191,"title":"tests: unittest library import","user":{"login":"romanchyla","id":411794,"avatar_url":"https://avatars.githubusercontent.com/u/411794?v=3","gravatar_id":"","url":"https://api.github.com/users/romanchyla","html_url":"https://github.com/romanchyla","followers_url":"https://api.github.com/users/romanchyla/followers","following_url":"https://api.github.com/users/romanchyla/following{/other_user}","gists_url":"https://api.github.com/users/romanchyla/gists{/gist_id}","starred_url":"https://api.github.com/users/romanchyla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanchyla/subscriptions","organizations_url":"https://api.github.com/users/romanchyla/orgs","repos_url":"https://api.github.com/users/romanchyla/repos","events_url":"https://api.github.com/users/romanchyla/events{/privacy}","received_events_url":"https://api.github.com/users/romanchyla/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/c_global","name":"c_global","color":"ededed"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/master","name":"master","color":"d4c5f9"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/p_minor","name":"p_minor","color":"f7c6c7"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/inveniosoftware/invenio/labels/t_bug","name":"t_bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio/milestones/6","html_url":"https://github.com/inveniosoftware/invenio/milestones/v2.2.0","labels_url":"https://api.github.com/repos/inveniosoftware/invenio/milestones/6/labels","id":696686,"number":6,"title":"v2.2.0","description":"Invenio v2.2 will use new data model and fully run on PostgreSQL.","creator":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"open_issues":81,"closed_issues":278,"state":"open","created_at":"2014-06-20T11:43:39Z","updated_at":"2016-07-05T08:41:57Z","due_on":"2015-07-30T22:00:00Z","closed_at":null},"comments":4,"created_at":"2014-09-01T22:38:06Z","updated_at":"2016-07-05T08:41:57Z","closed_at":"2016-07-05T08:41:57Z","body":"Since Flask-Testing will import unittest2 when available, certain Invenio tests may end up using different unittest library, which will cause head-scratching :) \r\n\r\nFor example @unittest.expectFailure decorator will not work because of the _ExpectedFailure class is different\r\n\r\nthe following would solve it, but i don't know why Invenio had the >=py27 test, if necessary, then the problem may be deeper....\r\n\r\n```\r\ndiff --git a/invenio/testsuite/__init__.py b/invenio/testsuite/__init__.py\r\nindex b4f57ef..1b0f555 100644\r\n--- a/invenio/testsuite/__init__.py\r\n+++ b/invenio/testsuite/__init__.py\r\n@@ -28,10 +28,9 @@ CFG_TESTUTILS_VERBOSE = 1\r\n import os\r\n import sys\r\n import time\r\n-pyv = sys.version_info\r\n-if pyv[0] == 2 and pyv[1] < 7:\r\n+try:\r\n     import unittest2 as unittest\r\n-else:\r\n+except ImportError:\r\n     import unittest\r\n import cgi\r\n import subprocess\r\n```"},"comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio/issues/comments/230420088","html_url":"https://github.com/inveniosoftware/invenio/issues/2191#issuecomment-230420088","issue_url":"https://api.github.com/repos/inveniosoftware/invenio/issues/2191","id":230420088,"user":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T08:41:57Z","updated_at":"2016-07-05T08:41:57Z","body":"Invenio 3 is using PyTest for all new tests."}}
{"actor":{"display_login":"jirikuncar"}}