diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-02-10 15:28:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-10 15:28:02 +0100 |
commit | 43867dbd987a36ba6a517508503da482eeeca9ea (patch) | |
tree | c576325bb0cd1bf43e1310cd171206307ae49b66 /pathod | |
parent | 74c991d70b3448439b483cb07cf30e3ebebfb373 (diff) | |
download | mitmproxy-43867dbd987a36ba6a517508503da482eeeca9ea.tar.gz mitmproxy-43867dbd987a36ba6a517508503da482eeeca9ea.tar.bz2 mitmproxy-43867dbd987a36ba6a517508503da482eeeca9ea.zip |
fix flaky coverage
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/pathoc.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |