]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a typo in code module test (#130530)
authorTian Gao <gaogaotiantian@hotmail.com>
Tue, 25 Feb 2025 05:33:52 +0000 (00:33 -0500)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 05:33:52 +0000 (00:33 -0500)
Lib/test/test_code_module.py

index 20b960ce8d1e0230cfa06a961c5233dee75b605a..faa0b38f8373e3dd115a9204e50f971a09c9a957 100644 (file)
@@ -50,9 +50,9 @@ class TestInteractiveConsole(unittest.TestCase, MockSys):
         self.infunc.side_effect = EOFError('Finished')
         self.console.interact()
         self.assertEqual(self.sysmod.ps2, '... ')
-        self.sysmod.ps1 = 'custom2> '
+        self.sysmod.ps2 = 'custom2> '
         self.console.interact()
-        self.assertEqual(self.sysmod.ps1, 'custom2> ')
+        self.assertEqual(self.sysmod.ps2, 'custom2> ')
 
     def test_console_stderr(self):
         self.infunc.side_effect = ["'antioch'", "", EOFError('Finished')]