]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add classmethod to setUpClass in test_pdb (#133840)
authorTian Gao <gaogaotiantian@hotmail.com>
Sat, 10 May 2025 18:10:58 +0000 (11:10 -0700)
committerGitHub <noreply@github.com>
Sat, 10 May 2025 18:10:58 +0000 (14:10 -0400)
Lib/test/test_pdb.py

index 68c2b508fa64dc2a7944205f28f896063885648c..6b74e21ad73d1a2453a1eb83cdf4a608f8a17edc 100644 (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')