Skip to content

Commit 4f2f780

Browse files
Add classmethod to setUpClass in test_pdb (python#133840)
1 parent 70f9b3d commit 4f2f780

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
@@ -4749,7 +4749,9 @@ def test_return_from_inline_mode_to_REPL(self):
47494749
@support.force_not_colorized_test_class
47504750
@support.requires_subprocess()
47514751
class PdbTestReadline(unittest.TestCase):
4752-
def setUpClass():
4752+
4753+
@classmethod
4754+
def setUpClass(cls):
47534755
# Ensure that the readline module is loaded
47544756
# If this fails, the test is skipped because SkipTest will be raised
47554757
readline = import_module('readline')

0 commit comments

Comments
 (0)