From 919ac91cc7ab40121a6ea9eb23bef43fe6e031a5 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Sun, 19 Nov 2023 08:21:10 +0100 Subject: [PATCH] Log deprecation warning in python 3.8 --- locust/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/locust/main.py b/locust/main.py index a0bcfb5ef4..6b846ff8f6 100644 --- a/locust/main.py +++ b/locust/main.py @@ -213,6 +213,9 @@ def is_valid_percentile(parameter): See https://github.com/locustio/locust/wiki/Installation#increasing-maximum-number-of-open-files-limit for more info.""" ) + if sys.version_info <= (3, 9): + logger.info("Python 3.8 support is deprecated and will be removed soon") + # create locust Environment locustfile_path = None if not locustfile else os.path.basename(locustfile)