From 6e69757f2d33333fe6d3a1e8e847290a0eaab93a Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Sat, 27 Jan 2024 13:17:13 +0200 Subject: [PATCH 1/2] gh-114100: Replace print with simple expression --- Lib/test/test_pty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index f31a68c5d84e03..0799f09e5b0dbb 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -292,7 +292,7 @@ def test_master_read(self): self.assertEqual(data, b"") def test_spawn_doesnt_hang(self): - pty.spawn([sys.executable, '-c', 'print("hi there")']) + pty.spawn([sys.executable, '-c', 'print("1 + 1")']) class SmallPtyTests(unittest.TestCase): """These tests don't spawn children or hang.""" From 37ee4d6ba6ce9f930a9780e2de49452a0e5968df Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Sat, 27 Jan 2024 13:18:25 +0200 Subject: [PATCH 2/2] gh-114100: Replace print with simple expression --- Lib/test/test_pty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index 0799f09e5b0dbb..e6bedabee5e4e2 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -292,7 +292,7 @@ def test_master_read(self): self.assertEqual(data, b"") def test_spawn_doesnt_hang(self): - pty.spawn([sys.executable, '-c', 'print("1 + 1")']) + pty.spawn([sys.executable, '-c', '1 + 1']) class SmallPtyTests(unittest.TestCase): """These tests don't spawn children or hang."""