From: Tian Gao Date: Sat, 10 May 2025 18:10:58 +0000 (-0700) Subject: Add classmethod to setUpClass in test_pdb (#133840) X-Git-Tag: v3.15.0a1~1769 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f2f780d534962261dcc7813e50d0dcb413a1d3c;p=thirdparty%2FPython%2Fcpython.git Add classmethod to setUpClass in test_pdb (#133840) --- diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 68c2b508fa64..6b74e21ad73d 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -4749,7 +4749,9 @@ class TestREPLSession(unittest.TestCase): @support.force_not_colorized_test_class @support.requires_subprocess() class PdbTestReadline(unittest.TestCase): - def setUpClass(): + + @classmethod + def setUpClass(cls): # Ensure that the readline module is loaded # If this fails, the test is skipped because SkipTest will be raised readline = import_module('readline')