From 43867dbd987a36ba6a517508503da482eeeca9ea Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 10 Feb 2017 15:28:02 +0100 Subject: fix flaky coverage --- pathod/pathoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pathod') diff --git a/pathod/pathoc.py b/pathod/pathoc.py index 3e804b63..aba5c344 100644 --- a/pathod/pathoc.py +++ b/pathod/pathoc.py @@ -127,8 +127,8 @@ class WebsocketFrameReader(basethread.BaseThread): return try: r, _, _ = select.select([self.rfile], [], [], 0.05) - except OSError: - return + except OSError: # pragma: no cover + return # this is not reliably triggered due to its nature, so we exclude it from coverage. delta = time.time() - starttime if not r and self.timeout and delta > self.timeout: return -- cgit v1.2.3