From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 10 May 2025 18:34:32 +0000 (+0200) Subject: [3.13] Add classmethod to setUpClass in test_pdb (GH-133840) (#133847) X-Git-Tag: v3.13.4~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26b6ab49e4d88b74d32680fde083ee803a5e89ee;p=thirdparty%2FPython%2Fcpython.git [3.13] Add classmethod to setUpClass in test_pdb (GH-133840) (#133847) Add classmethod to setUpClass in test_pdb (GH-133840) (cherry picked from commit 4f2f780d534962261dcc7813e50d0dcb413a1d3c) Co-authored-by: Tian Gao --- diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index c34046f0e5bb..8c341c6ee8e1 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -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')