Skip to content

Commit eae18b0

Browse files
Fix test on OpenIndiana.
1 parent c9c5862 commit eae18b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_ioctl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ def setUp(self):
145145

146146
@unittest.skipUnless(hasattr(termios, 'TCFLSH'), 'requires termios.TCFLSH')
147147
def test_ioctl_tcflush(self):
148-
r = fcntl.ioctl(self.master_fd, termios.TCFLSH, termios.TCIFLUSH)
148+
r = fcntl.ioctl(self.slave_fd, termios.TCFLSH, termios.TCIFLUSH)
149149
self.assertEqual(r, 0)
150-
r = fcntl.ioctl(self.master_fd, termios.TCFLSH, termios.TCOFLUSH)
150+
r = fcntl.ioctl(self.slave_fd, termios.TCFLSH, termios.TCOFLUSH)
151151
self.assertEqual(r, 0)
152152

153153
def test_ioctl_set_window_size(self):

0 commit comments

Comments
 (0)