Skip to content

Commit

Permalink
Remove test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 committed May 31, 2024
1 parent 13a5fdc commit a44ebbb
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Lib/test/test_ioctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,27 +66,6 @@ def test_ioctl_mutate_2048(self):
# Test with a larger buffer, just for the record.
self._check_ioctl_mutate_len(2048)

def test_ioctl_signed_unsigned_code_param(self):
if not pty:
raise unittest.SkipTest('pty module required')
mfd, sfd = pty.openpty()
try:
if termios.TIOCSWINSZ < 0:
set_winsz_opcode_maybe_neg = termios.TIOCSWINSZ
set_winsz_opcode_pos = termios.TIOCSWINSZ & 0xffffffff
else:
set_winsz_opcode_pos = termios.TIOCSWINSZ
set_winsz_opcode_maybe_neg, = struct.unpack("i",
struct.pack("I", termios.TIOCSWINSZ))

our_winsz = struct.pack("HHHH",80,25,0,0)
# test both with a positive and potentially negative ioctl code
new_winsz = fcntl.ioctl(mfd, set_winsz_opcode_pos, our_winsz)
new_winsz = fcntl.ioctl(mfd, set_winsz_opcode_maybe_neg, our_winsz)
finally:
os.close(mfd)
os.close(sfd)


if __name__ == "__main__":
unittest.main()

0 comments on commit a44ebbb

Please sign in to comment.