[3.14] Add classmethod to setUpClass in test_pdb (GH-133840) (#133846)

Add classmethod to setUpClass in test_pdb (GH-133840)
(cherry picked from commit 4f2f780d53)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
This commit is contained in:
Miss Islington (bot) 2025-05-10 20:38:14 +02:00 committed by GitHub
parent e7e105f51b
commit 39485d5935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')