[3.13] Add classmethod to setUpClass in test_pdb (GH-133840) (#133847)

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:34:32 +02:00 committed by GitHub
parent e76ff560b0
commit 26b6ab49e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4022,7 +4022,9 @@ class ChecklineTests(unittest.TestCase):
@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')