Skip to content

Commit 453ff6d

Browse files
CPython Developersyouknowone
authored andcommitted
Update test_runpy from v3.14.2-288-g06f9c8ca1c
1 parent 7004502 commit 453ff6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_runpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def assertSigInt(self, cmd, *args, **kwargs):
798798
# Use -E to ignore PYTHONSAFEPATH
799799
cmd = [sys.executable, '-E', *cmd]
800800
proc = subprocess.run(cmd, *args, **kwargs, text=True, stderr=subprocess.PIPE)
801-
self.assertTrue(proc.stderr.endswith("\nKeyboardInterrupt\n"), proc.stderr)
801+
self.assertEndsWith(proc.stderr, "\nKeyboardInterrupt\n")
802802
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
803803

804804
def test_pymain_run_file(self):

0 commit comments

Comments
 (0)