]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Add classmethod to setUpClass in test_pdb (GH-133840) (#133847)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 May 2025 18:34:32 +0000 (20:34 +0200)
committerGitHub <noreply@github.com>
Sat, 10 May 2025 18:34:32 +0000 (18:34 +0000)
Add classmethod to setUpClass in test_pdb (GH-133840)
(cherry picked from commit 4f2f780d534962261dcc7813e50d0dcb413a1d3c)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Lib/test/test_pdb.py

index c34046f0e5bb6fdb08977fdefb7a2c1bbce912aa..8c341c6ee8e11ae9bf386304287e62cf0a62021a 100644 (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')