diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-06-16 14:24:03 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-06-16 14:24:03 +0200 |
commit | 9cc91a0499ac3e21b5fcc24764360c7bfafeb07f (patch) | |
tree | 462ded47c2821196e592dd06d9da5dea32571023 | |
parent | d021582aa7639468e018b201b27cb696ab5712f2 (diff) | |
download | qutebrowser-9cc91a0499ac3e21b5fcc24764360c7bfafeb07f.tar.gz qutebrowser-9cc91a0499ac3e21b5fcc24764360c7bfafeb07f.zip |
Fix coverage pragmas for Content-Disposition parsing
https://github.com/python/cpython/issues/93010 has now been fixed, but https://github.com/python/cpython/issues/87112 is still broken.
-rw-r--r-- | qutebrowser/browser/webkit/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/browser/webkit/http.py b/qutebrowser/browser/webkit/http.py index a38cd358a..f289d10ab 100644 --- a/qutebrowser/browser/webkit/http.py +++ b/qutebrowser/browser/webkit/http.py @@ -93,10 +93,10 @@ class ContentDisposition: # Fixed in Python 3.7.5 and 3.8.0. # Still getting failures on 3.10 on CI though raise ContentDispositionError("Missing closing quote character") - except ValueError: # pragma: no cover + except ValueError: # WORKAROUND for https://github.com/python/cpython/issues/87112 raise ContentDispositionError("Non-ASCII digit") - except AttributeError: + except AttributeError: # pragma: no cover # WORKAROUND for https://github.com/python/cpython/issues/93010 raise ContentDispositionError("Section number has an invalid leading 0") |