{"action":"created","issue":{"url":"https://api.github.com/repos/coala-analyzer/coala/issues/380","labels_url":"https://api.github.com/repos/coala-analyzer/coala/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/coala-analyzer/coala/issues/380/comments","events_url":"https://api.github.com/repos/coala-analyzer/coala/issues/380/events","html_url":"https://github.com/coala-analyzer/coala/issues/380","id":60856942,"number":380,"title":"Print statement in iglob causes run_tests.py to hang on SectionManagerTest","user":{"login":"smfn3321","id":7591685,"avatar_url":"https://avatars.githubusercontent.com/u/7591685?v=3","gravatar_id":"","url":"https://api.github.com/users/smfn3321","html_url":"https://github.com/smfn3321","followers_url":"https://api.github.com/users/smfn3321/followers","following_url":"https://api.github.com/users/smfn3321/following{/other_user}","gists_url":"https://api.github.com/users/smfn3321/gists{/gist_id}","starred_url":"https://api.github.com/users/smfn3321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smfn3321/subscriptions","organizations_url":"https://api.github.com/users/smfn3321/orgs","repos_url":"https://api.github.com/users/smfn3321/repos","events_url":"https://api.github.com/users/smfn3321/events{/privacy}","received_events_url":"https://api.github.com/users/smfn3321/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coala-analyzer/coala/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T17:17:32Z","updated_at":"2015-03-12T17:19:26Z","closed_at":null,"body":"The iglob function is defined in coalib.parsing.glob.py and takes a *pattern* argument which should be a *string*. Printing this pattern at the beginning of the function should be entirely possible, but it causes the run_test.py Script to hang on the SectionManagerTest.\r\n\r\nI pushed the issue on the branch glob_print_bug.\r\n\r\nPlease note that executing the SectionManagerTest on it's own works for me. \r\nAlso, the run_tests.py script does *not* fail if I print an arbitrary string instead of the pattern variable.\r\n\r\nOutput if manually canceling the execution of run_tests.py when stalled:\r\n> 43/51 | FunctionMetadataTest\r\n 44/51 | SectionFillerTest\r\n 45/51 | SectionManagerTest\r\n^CTraceback (most recent call last):\r\n  File \"./run_tests.py\", line 37, in <module>\r\n    exit(testhelper.execute_python3_files(ignore_list))\r\n  File \"/home/fabian/Projekte/coala/coalib/tests/TestHelper.py\", line 144, in execute_python3_files\r\n    self.__execute_test(file, i+1, number, \",\".join(ignore_list))\r\n  File \"/home/fabian/Projekte/coala/coalib/tests/TestHelper.py\", line 132, in __execute_test\r\n    result = self.__execute_python3_file(filename, ignored_files)  # either 0 or 1\r\n  File \"/home/fabian/Projekte/coala/coalib/tests/TestHelper.py\", line 91, in __execute_python3_file\r\n    return self.__print_output([\"python3\", filename])\r\n  File \"/home/fabian/Projekte/coala/coalib/tests/TestHelper.py\", line 76, in __print_output\r\n    retval = p.wait()\r\n  File \"/usr/lib64/python3.4/subprocess.py\", line 1565, in wait\r\n    (pid, sts) = self._try_wait(0)\r\n  File \"/usr/lib64/python3.4/subprocess.py\", line 1513, in _try_wait\r\n    (pid, sts) = _eintr_retry_call(os.waitpid, self.pid, wait_flags)\r\n  File \"/usr/lib64/python3.4/subprocess.py\", line 491, in _eintr_retry_call\r\n    return func(*args)\r\nKeyboardInterrupt\r\n"},"comment":{"url":"https://api.github.com/repos/coala-analyzer/coala/issues/comments/78534886","html_url":"https://github.com/coala-analyzer/coala/issues/380#issuecomment-78534886","issue_url":"https://api.github.com/repos/coala-analyzer/coala/issues/380","id":78534886,"user":{"login":"sils1297","id":5716520,"avatar_url":"https://avatars.githubusercontent.com/u/5716520?v=3","gravatar_id":"","url":"https://api.github.com/users/sils1297","html_url":"https://github.com/sils1297","followers_url":"https://api.github.com/users/sils1297/followers","following_url":"https://api.github.com/users/sils1297/following{/other_user}","gists_url":"https://api.github.com/users/sils1297/gists{/gist_id}","starred_url":"https://api.github.com/users/sils1297/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sils1297/subscriptions","organizations_url":"https://api.github.com/users/sils1297/orgs","repos_url":"https://api.github.com/users/sils1297/repos","events_url":"https://api.github.com/users/sils1297/events{/privacy}","received_events_url":"https://api.github.com/users/sils1297/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T17:19:26Z","updated_at":"2015-03-12T17:19:26Z","body":"Maybe our TestHelper can't handle large amounts of output, I'll try to reproduce with a minimal testcase."}}