From a1a815032c8d2842a0042c8aa1da19ed1b50df77 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Fri, 13 Oct 2023 08:57:22 +0200 Subject: [PATCH] Skip flaky test on Python 3.8. --- locust/test/test_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/locust/test/test_main.py b/locust/test/test_main.py index 0102a4456a..7bbd5777bd 100644 --- a/locust/test/test_main.py +++ b/locust/test/test_main.py @@ -2,7 +2,9 @@ import json import os +import sys import platform +import unittest import pty import signal @@ -11,7 +13,6 @@ from tempfile import TemporaryDirectory from unittest import TestCase from subprocess import PIPE, STDOUT, DEVNULL - import gevent import requests @@ -435,6 +436,7 @@ def my_task(self): self.assertIn("Shutting down (exit code 0)", stderr) self.assertEqual(0, proc.returncode) + @unittest.skipIf(sys.version_info < (3, 9), reason="dies in 3.8 on GH and I cant be bothered to investigate it") def test_default_headless_spawn_options_with_shape(self): content = MOCK_LOCUSTFILE_CONTENT + textwrap.dedent( """