{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/into/issues/62","labels_url":"https://api.github.com/repos/ContinuumIO/into/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/into/issues/62/comments","events_url":"https://api.github.com/repos/ContinuumIO/into/issues/62/events","html_url":"https://github.com/ContinuumIO/into/issues/62","id":56407981,"number":62,"title":"test_json.py fails","user":{"login":"denniskl","id":10833779,"avatar_url":"https://avatars.githubusercontent.com/u/10833779?v=3","gravatar_id":"","url":"https://api.github.com/users/denniskl","html_url":"https://github.com/denniskl","followers_url":"https://api.github.com/users/denniskl/followers","following_url":"https://api.github.com/users/denniskl/following{/other_user}","gists_url":"https://api.github.com/users/denniskl/gists{/gist_id}","starred_url":"https://api.github.com/users/denniskl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denniskl/subscriptions","organizations_url":"https://api.github.com/users/denniskl/orgs","repos_url":"https://api.github.com/users/denniskl/repos","events_url":"https://api.github.com/users/denniskl/events{/privacy}","received_events_url":"https://api.github.com/users/denniskl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-03T17:17:54Z","updated_at":"2015-02-04T16:31:40Z","closed_at":null,"body":"Content of json file located in user-temp directory:\r\n```\r\n[{\"amount\": 100, \"name\": \"Alice\"}, {\"amount\": 200, \"name\": \"Bob\"}]\r\n```\r\n\r\n\r\n```\r\n$ py.test test_json.py\r\n←[1m============================= test session starts =============================←[0m\r\nplatform win32 -- Python 2.7.8 -- py-1.4.26 -- pytest-2.6.4\r\ncollected 21 items ←[0m←[1m\r\n←[0m\r\ntest_json.py ...FF........F....F..\r\n\r\n================================== FAILURES ===================================\r\n________________________________ test_resource ________________________________\r\n\r\n←[1m    def test_resource():←[0m\r\n←[1m>       assert isinstance(resource('jsonlines://foo.json'), JSONLines)←[0m\r\n←[1m←[31mE       assert isinstance(<into.directory._Directory object at 0x0422CEB0>, JSONLines)←[0m\r\n←[1m←[31mE        +  where <into.directory._Directory object at 0x0422CEB0> = resource('jsonlines://foo.json')←[0m\r\n\r\ntest_json.py:55: AssertionError\r\n___________________________ test_resource_guessing ____________________________\r\n\r\n←[1m    def test_resource_guessing():←[0m\r\n←[1m        with json_file(dat) as fn:←[0m\r\n←[1m>           assert isinstance(resource(fn), JSON)←[0m\r\n\r\ntest_json.py:63:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n..\\..\\regex.py:64: in __call__\r\n←[1m    return self.dispatch(s)(s, *args, **kwargs)←[0m\r\n..\\..\\directory.py:57: in resource_directory\r\n←[1m    subtype = type(resource(one_uri, **kwargs))←[0m\r\n..\\..\\regex.py:64: in __call__\r\n←[1m    return self.dispatch(s)(s, *args, **kwargs)←[0m\r\n!!! Recursion detected (same locals & position)\r\n___________________________ test_multiple_jsonlines ___________________________\r\n\r\n←[1m    def test_multiple_jsonlines():←[0m\r\n←[1m        try:←[0m\r\n←[1m            with open('_test_a1.json', 'w') as f:←[0m\r\n←[1m                json.dump(dat, f)←[0m\r\n←[1m            with open('_test_a2.json', 'w') as f:←[0m\r\n←[1m                json.dump(dat, f)←[0m\r\n←[1m>           r = resource('_test_a*.json')←[0m\r\n\r\ntest_json.py:154:\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _\r\n..\\..\\regex.py:64: in __call__\r\n←[1m    return self.dispatch(s)(s, *args, **kwargs)←[0m\r\n..\\..\\directory.py:57: in resource_directory\r\n←[1m    subtype = type(resource(one_uri, **kwargs))←[0m\r\n..\\..\\regex.py:64: in __call__\r\n←[1m    return self.dispatch(s)(s, *args, **kwargs)←[0m\r\n..\\..\\directory.py:57: in resource_directory\r\n←[1m    subtype = type(resource(one_uri, **kwargs))←[0m\r\n..\\..\\regex.py:64: in __call__\r\n←[1m    return self.dispatch(s)(s, *args, **kwargs)←[0m\r\n!!! Recursion detected (same locals & position)\r\n_____________________________ test_resource_gzip ______________________________\r\n\r\n←[1m    def test_resource_gzip():←[0m\r\n←[1m>       assert isinstance(resource('foo.json.gz'), (JSON, JSONLines))←[0m\r\n←[1m←[31mE       assert isinstance(<into.directory._Directory object at 0x04364030>, (<class 'into.backends.json.JSON'>, <cla\r\nss 'into.backends.json.JSONLines'>))←[0m\r\n←[1m←[31mE        +  where <into.directory._Directory object at 0x04364030> = resource('foo.json.gz')←[0m\r\n\r\ntest_json.py:206: AssertionError\r\n←[1m←[31m===================== 4 failed, 17 passed in 2.78 seconds =====================←[0m```"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/into/issues/comments/72887157","html_url":"https://github.com/ContinuumIO/into/issues/62#issuecomment-72887157","issue_url":"https://api.github.com/repos/ContinuumIO/into/issues/62","id":72887157,"user":{"login":"denniskl","id":10833779,"avatar_url":"https://avatars.githubusercontent.com/u/10833779?v=3","gravatar_id":"","url":"https://api.github.com/users/denniskl","html_url":"https://github.com/denniskl","followers_url":"https://api.github.com/users/denniskl/followers","following_url":"https://api.github.com/users/denniskl/following{/other_user}","gists_url":"https://api.github.com/users/denniskl/gists{/gist_id}","starred_url":"https://api.github.com/users/denniskl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denniskl/subscriptions","organizations_url":"https://api.github.com/users/denniskl/orgs","repos_url":"https://api.github.com/users/denniskl/repos","events_url":"https://api.github.com/users/denniskl/events{/privacy}","received_events_url":"https://api.github.com/users/denniskl/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T16:31:40Z","updated_at":"2015-02-04T16:31:40Z","body":"Hehe, many thanks! First, I would like to make sure that all tests run on my windows computer .. Then, I'll try an 'into(hdf5, csv)' again ;)"}}