]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix a typo in code module test (GH-130530) (GH-130533)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Feb 2025 09:54:15 +0000 (10:54 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 09:54:15 +0000 (09:54 +0000)
(cherry picked from commit 56e337d32b88630f2c35458231cd61929f1be6d4)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Lib/test/test_code_module.py

index 06a1ba494be131b90df93cd1035a055b178ff90c..a79dd73a5b65defdb2ba7015f3f23647a6190f0f 100644 (file)
@@ -46,9 +46,9 @@ class TestInteractiveConsole(unittest.TestCase):
         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')]