diff --git a/.circleci/config.yml b/.circleci/config.yml index ead7fa48..f4429ab6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -198,6 +198,9 @@ workflows: - tests-python: name: test-3.10 python-image: "cimg/python:3.10" + - tests-python: + name: test-3.11 + python-image: "cimg/python:3.11" nightly: when: diff --git a/CHANGELOG.md b/CHANGELOG.md index c1904c50..1c27b1e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.35.0 [unreleased] +### CI +1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds + ## 1.34.0 [2022-10-27] ### Breaking Changes diff --git a/setup.py b/setup.py index 176e9f5a..2afe906c 100644 --- a/setup.py +++ b/setup.py @@ -80,6 +80,7 @@ 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Topic :: Database', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', diff --git a/tests/test_InfluxDBClient.py b/tests/test_InfluxDBClient.py index 98938fb2..741457b4 100644 --- a/tests/test_InfluxDBClient.py +++ b/tests/test_InfluxDBClient.py @@ -407,14 +407,16 @@ def test_custom_debug_logging_handler(self): class ServerWithSelfSingedSSL(http.server.SimpleHTTPRequestHandler): - def _set_headers(self): - self.send_response(200) - self.send_header('Content-type', 'application/json') + def _set_headers(self, response: bytes): + self.send_response(http.HTTPStatus.OK) + self.send_header("Content-type", 'application/json') + self.send_header("Content-Length", f'{len(response)}') + self.send_header("Last-Modified", self.date_time_string()) self.end_headers() def do_GET(self): - self._set_headers() response = json.dumps( dict(name="influxdb", message="ready for queries and writes", status="pass", checks=[], version="2.0.0", commit="abcdefgh")).encode('utf-8') + self._set_headers(response) self.wfile.write(response)