https://github.com/python/cpython/commit/39485d593560af8b638c6f565ef73fc22e55d183
commit: 39485d593560af8b638c6f565ef73fc22e55d183
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: gaogaotiantian <gaogaotiant...@hotmail.com>
date: 2025-05-10T18:38:14Z
summary:

[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 <gaogaotiant...@hotmail.com>

files:
M Lib/test/test_pdb.py

diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 68c2b508fa64dc..6b74e21ad73d1a 100644
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -4749,7 +4749,9 @@ def test_return_from_inline_mode_to_REPL(self):
 @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')

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to