{"action":"created","issue":{"url":"https://api.github.com/repos/akoumjian/datefinder/issues/8","repository_url":"https://api.github.com/repos/akoumjian/datefinder","labels_url":"https://api.github.com/repos/akoumjian/datefinder/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/akoumjian/datefinder/issues/8/comments","events_url":"https://api.github.com/repos/akoumjian/datefinder/issues/8/events","html_url":"https://github.com/akoumjian/datefinder/issues/8","id":134033563,"number":8,"title":"test_parse_date_string fails comparing offset-naive and offset-aware types","user":{"login":"lindauer","id":779345,"avatar_url":"https://avatars.githubusercontent.com/u/779345?v=3","gravatar_id":"","url":"https://api.github.com/users/lindauer","html_url":"https://github.com/lindauer","followers_url":"https://api.github.com/users/lindauer/followers","following_url":"https://api.github.com/users/lindauer/following{/other_user}","gists_url":"https://api.github.com/users/lindauer/gists{/gist_id}","starred_url":"https://api.github.com/users/lindauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindauer/subscriptions","organizations_url":"https://api.github.com/users/lindauer/orgs","repos_url":"https://api.github.com/users/lindauer/repos","events_url":"https://api.github.com/users/lindauer/events{/privacy}","received_events_url":"https://api.github.com/users/lindauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-16T16:53:16Z","updated_at":"2016-02-17T04:28:07Z","closed_at":null,"body":"```\r\n>           assert actual_datetime == expected_date\r\nE           TypeError: can't compare offset-naive and offset-aware datetimes\r\n\r\ntests/test_parse_date_string.py:61: TypeError\r\n----------------------------- Captured stdout call -----------------------------\r\nDEBUG:tests.test_parse_date_string:acutal=2015-11-20 18:00:00-06:00  expected=2015-11-20 18:00:00\r\n```\r\n\r\nIt looks like the problem is test test itself, unless I misunderstand what is supposed to be happening.\r\n\r\n```\r\ndiff --git a/tests/test_parse_date_string.py b/tests/test_parse_date_string.py\r\nindex 68e8e6b..eee6366 100644\r\n--- a/tests/test_parse_date_string.py\r\n+++ b/tests/test_parse_date_string.py\r\n@@ -41,7 +41,7 @@ logger = logging.getLogger(__name__)\r\n     (' on 11-20-2015 6pm CST ',\r\n      '11-20-2015 6pm',\r\n      {'timezones':['CST']},\r\n-     datetime(2015, 11, 20, 18, 0)\r\n+     datetime(2015, 11, 20, 18, 0).replace(tzinfo=tz.gettz('CST'))\r\n     ),\r\n     # test a tz abbreviation that\r\n     # dateutile.tz.gettz cannot find\r\n@@ -49,7 +49,7 @@ logger = logging.getLogger(__name__)\r\n     (' on 11-20-2015 6am IRST ',\r\n      '11-20-2015 6am',\r\n      {'timezones':['IRST']},\r\n-     datetime(2015, 11, 20, 6, 0)\r\n+     datetime(2015, 11, 20, 6, 0).replace(tzinfo=tz.gettz('IRST'))\r\n     )\r\n ])\r\n def test_parse_date_string_find_replace(date_string, expected_parse_arg, expected_captures, expected_date):\r\n```"},"comment":{"url":"https://api.github.com/repos/akoumjian/datefinder/issues/comments/185015092","html_url":"https://github.com/akoumjian/datefinder/issues/8#issuecomment-185015092","issue_url":"https://api.github.com/repos/akoumjian/datefinder/issues/8","id":185015092,"user":{"login":"lindauer","id":779345,"avatar_url":"https://avatars.githubusercontent.com/u/779345?v=3","gravatar_id":"","url":"https://api.github.com/users/lindauer","html_url":"https://github.com/lindauer","followers_url":"https://api.github.com/users/lindauer/followers","following_url":"https://api.github.com/users/lindauer/following{/other_user}","gists_url":"https://api.github.com/users/lindauer/gists{/gist_id}","starred_url":"https://api.github.com/users/lindauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindauer/subscriptions","organizations_url":"https://api.github.com/users/lindauer/orgs","repos_url":"https://api.github.com/users/lindauer/repos","events_url":"https://api.github.com/users/lindauer/events{/privacy}","received_events_url":"https://api.github.com/users/lindauer/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T04:28:07Z","updated_at":"2016-02-17T04:28:07Z","body":"It does!\r\n\r\n```\r\n>>> import dateutil.tz\r\n>>> dateutil.tz.gettz('CST')\r\ntzlocal()\r\n```"}}