https://github.com/python/cpython/commit/26b6ab49e4d88b74d32680fde083ee803a5e89ee commit: 26b6ab49e4d88b74d32680fde083ee803a5e89ee branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: gaogaotiantian <gaogaotiant...@hotmail.com> date: 2025-05-10T18:34:32Z summary:
[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 <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 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') _______________________________________________ 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