diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2025-05-10 11:10:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-10 14:10:58 -0400 |
commit | 4f2f780d534962261dcc7813e50d0dcb413a1d3c (patch) | |
tree | d99bdc9014ffd0532ca5426616918027aec204c5 | |
parent | 70f9b3de36a7aa455f645032d602c5ece3214d45 (diff) | |
download | cpython-4f2f780d534962261dcc7813e50d0dcb413a1d3c.tar.gz cpython-4f2f780d534962261dcc7813e50d0dcb413a1d3c.zip |
Add classmethod to setUpClass in test_pdb (#133840)
-rw-r--r-- | Lib/test/test_pdb.py | 4 |
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') |