{"action":"opened","issue":{"url":"https://api.github.com/repos/google/ggrc-core/issues/2666","labels_url":"https://api.github.com/repos/google/ggrc-core/issues/2666/labels{/name}","comments_url":"https://api.github.com/repos/google/ggrc-core/issues/2666/comments","events_url":"https://api.github.com/repos/google/ggrc-core/issues/2666/events","html_url":"https://github.com/google/ggrc-core/issues/2666","id":71142809,"number":2666,"title":"Problem with tests","user":{"login":"Swizec","id":56883,"avatar_url":"https://avatars.githubusercontent.com/u/56883?v=3","gravatar_id":"","url":"https://api.github.com/users/Swizec","html_url":"https://github.com/Swizec","followers_url":"https://api.github.com/users/Swizec/followers","following_url":"https://api.github.com/users/Swizec/following{/other_user}","gists_url":"https://api.github.com/users/Swizec/gists{/gist_id}","starred_url":"https://api.github.com/users/Swizec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swizec/subscriptions","organizations_url":"https://api.github.com/users/Swizec/orgs","repos_url":"https://api.github.com/users/Swizec/repos","events_url":"https://api.github.com/users/Swizec/events{/privacy}","received_events_url":"https://api.github.com/users/Swizec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T00:50:40Z","updated_at":"2015-04-27T00:50:40Z","closed_at":null,"body":"@zidarsk8 I get a strange problem on the 2nd time tests run.\r\n\r\nI use `run_pytests`, everything is fine.\r\n\r\nI change a test file. The tests rerun.\r\n\r\nI get 10 of these exact same errors:\r\n\r\n     ======================================================================\r\n     ERROR: Failure: AttributeError ('NoneType' object has no attribute 'timedelta')\r\n     ----------------------------------------------------------------------\r\n     Traceback (most recent call last):\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/nose/loader.py\", line 413, in loadTestsFromName\r\n         addr.filename, addr.module)\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/nose/importer.py\", line 47, in importFromPath\r\n         return self.importFromDir(dir_path, fqname)\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/nose/importer.py\", line 94, in importFromDir\r\n         mod = load_module(part_fqname, fh, filename, desc)\r\n       File \"/vagrant/src/tests/ggrc_workflows/test_basic_workflow_actions.py\", line 8, in <module>\r\n         from tests.ggrc import TestCase\r\n       File \"/vagrant/src/tests/ggrc/__init__.py\", line 10, in <module>\r\n         from ggrc.app import app\r\n       File \"/vagrant/src/ggrc/app.py\", line 63, in <module>\r\n         ggrc.views.init_all_views(app)\r\n       File \"/vagrant/src/ggrc/views/__init__.py\", line 223, in init_all_views\r\n         ext_extra_views(app)\r\n       File \"/vagrant/src/ggrc_workflows/__init__.py\", line 813, in init_extra_views\r\n         from . import views\r\n       File \"/vagrant/src/ggrc_workflows/views/__init__.py\", line 8, in <module>\r\n         from ggrc import notification\r\n       File \"/vagrant/src/ggrc/notification/__init__.py\", line 8, in <module>\r\n         from freezegun import freeze_time\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/freezegun/__init__.py\", line 18, in <module>\r\n         from .api import freeze_time\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/freezegun/api.py\", line 7, in <module>\r\n         from dateutil import parser\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/dateutil/parser.py\", line 738, in <module>\r\n         DEFAULTPARSER = parser()\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/dateutil/parser.py\", line 300, in __init__\r\n         self.info = info or parserinfo()\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/dateutil/parser.py\", line 219, in __init__\r\n         self._year = time.localtime().tm_year\r\n       File \"/vagrant-dev/opt/dev_virtualenv/local/lib/python2.7/site-packages/freezegun/api.py\", line 45, in __call__\r\n         shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone)\r\n     AttributeError: 'NoneType' object has no attribute 'timedelta'\r\n\r\nYou might have a better idea how to fix this than I do since it's part of your tests additions."}}