diff options
| author | Barry Warsaw | 2017-07-22 03:02:05 +0000 |
|---|---|---|
| committer | Barry Warsaw | 2017-07-22 03:02:05 +0000 |
| commit | f00b94f18e1d82d1488cbcee6053f03423bc2f49 (patch) | |
| tree | 1a8e56dff0eab71e58e5fc9ecc5f3c614d7edca7 /src/mailman/rest/docs/__init__.py | |
| parent | f54c045519300f6f70947d1114f46c2b8ae0d368 (diff) | |
| download | mailman-f00b94f18e1d82d1488cbcee6053f03423bc2f49.tar.gz mailman-f00b94f18e1d82d1488cbcee6053f03423bc2f49.tar.zst mailman-f00b94f18e1d82d1488cbcee6053f03423bc2f49.zip | |
Diffstat (limited to 'src/mailman/rest/docs/__init__.py')
| -rw-r--r-- | src/mailman/rest/docs/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/rest/docs/__init__.py b/src/mailman/rest/docs/__init__.py index 81c6d11b4..350a6b83e 100644 --- a/src/mailman/rest/docs/__init__.py +++ b/src/mailman/rest/docs/__init__.py @@ -28,7 +28,7 @@ from public import public # New in Python 3.5. try: from http import HTTPStatus -except ImportError: # pragma: no cover +except ImportError: # pragma: nocover class HTTPStatus: FORBIDDEN = 403 NOT_FOUND = 404 @@ -43,14 +43,14 @@ class TestableHandler(BaseHTTPRequestHandler): log_error = log_request - def do_GET(self): # pragma: no cover + def do_GET(self): # pragma: nocover if self.path == '/welcome_2.txt': if self.headers['Authorization'] != 'Basic YW5uZTppcyBzcGVjaWFs': self.send_error(HTTPStatus.FORBIDDEN) return response = TEXTS.get(self.path) if response is None: - self.send_error(HTTPStatus.NOT_FOUND) # pragma: no cover + self.send_error(HTTPStatus.NOT_FOUND) # pragma: nocover return self.send_response(HTTPStatus.OK) self.send_header('Content-Type', 'UTF-8') |
