Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Restructure test_openpty().
Signed-off-by: Soumendra Ganguly <[email protected]>
  • Loading branch information
8vasu committed Nov 2, 2020
commit 654693818afd24d3d614440ac953c44d6e54de22
3 changes: 1 addition & 2 deletions Lib/test/test_pty.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ def test_fork(self):
def test_master_read(self):
debug("Calling pty.openpty()")
master_fd, slave_fd = pty.openpty()
debug("Got master_fd '%d', slave_fd '%d'" %
(master_fd, slave_fd))
debug(f"Got master_fd '{master_fd}', slave_fd '{slave_fd}'")

debug("Closing slave_fd")
os.close(slave_fd)
Expand Down