diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index c34046f0e5bb6f..8c341c6ee8e11a 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -4022,7 +4022,9 @@ def test_checkline_is_not_executable(self): @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')