From 39485d593560af8b638c6f565ef73fc22e55d183 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 10 May 2025 20:38:14 +0200 Subject: [3.14] Add classmethod to setUpClass in test_pdb (GH-133840) (#133846) Add classmethod to setUpClass in test_pdb (GH-133840) (cherry picked from commit 4f2f780d534962261dcc7813e50d0dcb413a1d3c) Co-authored-by: Tian Gao --- Lib/test/test_pdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 68c2b50..6b74e21 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') -- cgit v0.12