{"action":"created","issue":{"url":"https://api.github.com/repos/aaugustin/websockets/issues/63","labels_url":"https://api.github.com/repos/aaugustin/websockets/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/aaugustin/websockets/issues/63/comments","events_url":"https://api.github.com/repos/aaugustin/websockets/issues/63/events","html_url":"https://github.com/aaugustin/websockets/issues/63","id":95396613,"number":63,"title":"test_protocol unittest failures on Windows","user":{"login":"SzieberthAdam","id":1587268,"avatar_url":"https://avatars.githubusercontent.com/u/1587268?v=3","gravatar_id":"","url":"https://api.github.com/users/SzieberthAdam","html_url":"https://github.com/SzieberthAdam","followers_url":"https://api.github.com/users/SzieberthAdam/followers","following_url":"https://api.github.com/users/SzieberthAdam/following{/other_user}","gists_url":"https://api.github.com/users/SzieberthAdam/gists{/gist_id}","starred_url":"https://api.github.com/users/SzieberthAdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SzieberthAdam/subscriptions","organizations_url":"https://api.github.com/users/SzieberthAdam/orgs","repos_url":"https://api.github.com/users/SzieberthAdam/repos","events_url":"https://api.github.com/users/SzieberthAdam/events{/privacy}","received_events_url":"https://api.github.com/users/SzieberthAdam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-07-16T09:50:29Z","updated_at":"2015-08-08T10:59:37Z","closed_at":null,"body":"After fixing #62 there is still receive three failures. Note that these failures are identical for this repo and for my fork. Since these involving the protocol which I am not know enough yet to fix, I am dumping them to here.\r\n\r\nCurrently I am on my Linux environment:\r\n4.0.7-2-ARCH\r\nPython 3.4.3\r\n64bit\r\n\r\nIf we got different failures here, I am here to help.\r\n\r\n```python\r\n[adam@sza8215 websockets]$ python -m unittest\r\n...........Exception ignored in: Exception ignored in: Exception ignored in: Exception ignored in: Exception ignored in: Exception ignored in: /usr/lib/python3.4/asyncio/futures.py:151: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 8642, 0, 0), raddr=('::1', 37256, 0, 0)>\r\n  self._loop = events.get_event_loop()\r\n/usr/lib/python3.4/asyncio/futures.py:151: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37256, 0, 0)>\r\n  self._loop = events.get_event_loop()\r\n/usr/lib/python3.4/asyncio/futures.py:151: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 8642, 0, 0), raddr=('::1', 37257, 0, 0)>\r\n  self._loop = events.get_event_loop()\r\n/usr/lib/python3.4/asyncio/futures.py:151: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37257, 0, 0)>\r\n  self._loop = events.get_event_loop()\r\n/usr/lib/python3.4/asyncio/futures.py:151: ResourceWarning: unclosed <socket.socket fd=14, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 8642, 0, 0), raddr=('::1', 37258, 0, 0)>\r\n  self._loop = events.get_event_loop()\r\n/usr/lib/python3.4/asyncio/futures.py:151: ResourceWarning: unclosed <socket.socket fd=13, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37258, 0, 0)>\r\n  self._loop = events.get_event_loop()\r\n....Exception ignored in: /usr/lib/python3.4/unittest/mock.py:1836: ResourceWarning: unclosed <socket.socket fd=15, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37259, 0, 0), raddr=('::1', 8642, 0, 0)>\r\n  self.name = name\r\n...............Exception ignored in: Exception ignored in: /usr/lib/python3.4/_collections_abc.py:584: ResourceWarning: unclosed <ssl.SSLSocket fd=9, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37276, 0, 0), raddr=('::1', 8642, 0, 0)>\r\n  self, *args = args\r\n/usr/lib/python3.4/_collections_abc.py:584: ResourceWarning: unclosed <ssl.SSLSocket fd=11, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37277, 0, 0), raddr=('::1', 8642, 0, 0)>\r\n  self, *args = args\r\n....Exception ignored in: Exception ignored in: /usr/lib/python3.4/asyncio/base_events.py:437: ResourceWarning: unclosed <ssl.SSLSocket fd=12, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37278, 0, 0), raddr=('::1', 8642, 0, 0)>\r\n  handle = events.Handle(callback, args, self)\r\n/usr/lib/python3.4/asyncio/base_events.py:437: ResourceWarning: unclosed <ssl.SSLSocket fd=9, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 37279, 0, 0), raddr=('::1', 8642, 0, 0)>\r\n  handle = events.Handle(callback, args, self)\r\n...Exception ignored in: Exception ignored in: /usr/lib/python3.4/threading.py:213: ResourceWarning: unclosed <socket.socket fd=16, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 8642, 0, 0), raddr=('::1', 37259, 0, 0)>\r\n  self._lock = lock\r\n/usr/lib/python3.4/threading.py:213: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 8642, 0, 0), raddr=('::1', 37266, 0, 0)>\r\n  self._lock = lock\r\n....Exception ignored in: /usr/lib/python3.4/selectors.py:396: ResourceWarning: unclosed <ssl.SSLSocket fd=10, family=AddressFamily.AF_INET6, type=2049, proto=6, laddr=('::1', 8642, 0, 0), raddr=('::1', 37286, 0, 0)>\r\n  key = super().register(fileobj, events, data)\r\n..........................................F..........................................F.F...............................\r\n======================================================================\r\nFAIL: test_close_timeout_before_eof_received (websockets.test_protocol.ClientTests)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/adam/github/notmy/websockets/websockets/test_protocol.py\", line 480, in test_close_timeout_before_eof_received\r\n    self.assertFalse(self.before.cancelled())\r\nAssertionError: True is not false\r\n\r\n======================================================================\r\nFAIL: test_close_handshake_timeout (websockets.test_protocol.ServerTests)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/adam/github/notmy/websockets/websockets/test_protocol.py\", line 360, in test_close_handshake_timeout\r\n    self.assertFalse(self.before.cancelled())\r\nAssertionError: True is not false\r\n\r\n======================================================================\r\nFAIL: test_close_timeout_before_connection_lost (websockets.test_protocol.ServerTests)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/adam/github/notmy/websockets/websockets/test_protocol.py\", line 376, in test_close_timeout_before_connection_lost\r\n    self.assertFalse(self.before.cancelled())\r\nAssertionError: True is not false\r\n\r\n----------------------------------------------------------------------\r\nRan 160 tests in 4.876s\r\n\r\nFAILED (failures=3)\r\n```"},"comment":{"url":"https://api.github.com/repos/aaugustin/websockets/issues/comments/128960445","html_url":"https://github.com/aaugustin/websockets/issues/63#issuecomment-128960445","issue_url":"https://api.github.com/repos/aaugustin/websockets/issues/63","id":128960445,"user":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars.githubusercontent.com/u/788910?v=3","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T10:59:37Z","updated_at":"2015-08-08T10:59:37Z","body":"asyncio's clock relies on `time.monotonic()`. It is implemented with GetTickCount on Windows which has ~16ms resolution. That's why some tests fail with timings rounded to 0ms or 16ms."}}