Skip to content

Commit 81f305f

Browse files
improve isolation of test_pending_call_creates_thread_subinterpreter
1 parent 0cb09f9 commit 81f305f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_capi/test_misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ def test_pending_call_creates_thread_subinterpreter(self):
19951995
19961996
def output():
19971997
time.sleep(1)
1998-
print("x")
1998+
print("x", end="")
19991999
20002000
def callback():
20012001
threading.Thread(target=output).start()
@@ -2016,7 +2016,7 @@ def create_pending_call():
20162016
"""
20172017
rc, out, err = assert_python_ok('-c', source)
20182018
self.assertEqual(rc, 0)
2019-
self.assertEqual(out, b"x\n")
2019+
self.assertEqual(out, b"x")
20202020
self.assertEqual(err, b"")
20212021

20222022

0 commit comments

Comments
 (0)