summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-05-24 09:36:45 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-05-24 09:36:45 (GMT)
commit7d3d04d6dbe90aaec04e23ba417f2e0d4f954bab (patch)
treeed447820aa311122c67d7b94764c369220c4c635 /Lib/test
parent68faf5b0fc24e11af95a60cef3f9d13fc85b2711 (diff)
downloadcpython-7d3d04d6dbe90aaec04e23ba417f2e0d4f954bab.zip
cpython-7d3d04d6dbe90aaec04e23ba417f2e0d4f954bab.tar.gz
cpython-7d3d04d6dbe90aaec04e23ba417f2e0d4f954bab.tar.bz2
Don't try to get the window size if it was never set before.
Fixes the test failure on Solaris.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_ioctl.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/test/test_ioctl.py b/Lib/test/test_ioctl.py
index 9e6d4bc..d46b10d 100644
--- a/Lib/test/test_ioctl.py
+++ b/Lib/test/test_ioctl.py
@@ -52,13 +52,10 @@ class IoctlTests(unittest.TestCase):
set_winsz_opcode_maybe_neg, = struct.unpack("i",
struct.pack("I", termios.TIOCSWINSZ))
- # We're just testing that these calls do not raise exceptions.
- saved_winsz = fcntl.ioctl(mfd, termios.TIOCGWINSZ, "\0"*8)
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)
- fcntl.ioctl(mfd, set_winsz_opcode_maybe_neg, saved_winsz)
finally:
os.close(mfd)
os.close(sfd)