From d67a2f8e97df48e7fe9f2b34a8a4d878411938a9 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Thu, 21 Sep 2023 21:36:46 +0200 Subject: [PATCH] Log a deprecation warning in Python 3.7. --- locust/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/locust/main.py b/locust/main.py index 1c27c093f8..b2aebdee72 100644 --- a/locust/main.py +++ b/locust/main.py @@ -210,6 +210,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, 8): + logger.info("Python 3.7 support is deprecated and will be removed soon") + # create locust Environment locustfile_path = None if not locustfile else os.path.basename(locustfile)