From ea5b3300f26c359b6651e779f9ca2d7f04d8729a Mon Sep 17 00:00:00 2001 From: Vitaly Legchilkin Date: Sat, 22 Nov 2025 16:42:39 +0100 Subject: [PATCH] PY-85040 unittest discover from python 2.7 has no --quiet option GitOrigin-RevId: fae8bfb942ad8240fc0d0b0601a5e5780ac1a811 --- python/helpers/pycharm/_jb_unittest_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/pycharm/_jb_unittest_runner.py b/python/helpers/pycharm/_jb_unittest_runner.py index a1821dc7b52e..6a3fe8720dbb 100644 --- a/python/helpers/pycharm/_jb_unittest_runner.py +++ b/python/helpers/pycharm/_jb_unittest_runner.py @@ -56,7 +56,7 @@ def build_unittest_args( if verbose: args.append("--verbose") - else: + elif sys.version_info >= (3, 0): args.append("--quiet") args += additional_args