aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTian Gao <gaogaotiantian@hotmail.com>2025-05-10 11:10:58 -0700
committerGitHub <noreply@github.com>2025-05-10 14:10:58 -0400
commit4f2f780d534962261dcc7813e50d0dcb413a1d3c (patch)
treed99bdc9014ffd0532ca5426616918027aec204c5
parent70f9b3de36a7aa455f645032d602c5ece3214d45 (diff)
downloadcpython-4f2f780d534962261dcc7813e50d0dcb413a1d3c.tar.gz
cpython-4f2f780d534962261dcc7813e50d0dcb413a1d3c.zip
Add classmethod to setUpClass in test_pdb (#133840)
-rw-r--r--Lib/test/test_pdb.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 68c2b508fa6..6b74e21ad73 100644
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -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')