Skip to content

Commit 26b6ab4

Browse files
[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 4f2f780) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
1 parent e76ff56 commit 26b6ab4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_pdb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4022,7 +4022,9 @@ def test_checkline_is_not_executable(self):
40224022

40234023
@support.requires_subprocess()
40244024
class PdbTestReadline(unittest.TestCase):
4025-
def setUpClass():
4025+
4026+
@classmethod
4027+
def setUpClass(cls):
40264028
# Ensure that the readline module is loaded
40274029
# If this fails, the test is skipped because SkipTest will be raised
40284030
readline = import_module('readline')

0 commit comments

Comments
 (0)