Add classmethod to setUpClass in test_pdb (#133840)

This commit is contained in:
Tian Gao 2025-05-10 11:10:58 -07:00 committed by GitHub
parent 70f9b3de36
commit 4f2f780d53
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')