From b14f8505d0e9abe1db9353ec4b53b20d9e2a254e Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 26 Jul 2010 13:34:59 +0200 Subject: [PATCH] fix test on python2.4 --HG-- branch : trunk --- testing/io_/test_terminalwriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/io_/test_terminalwriter.py b/testing/io_/test_terminalwriter.py index 7273de2c7..d8e1c0e4a 100644 --- a/testing/io_/test_terminalwriter.py +++ b/testing/io_/test_terminalwriter.py @@ -13,7 +13,7 @@ def test_getdimensions(monkeypatch): monkeypatch.setattr(fcntl, 'ioctl', lambda *args: l.append(args)) try: terminalwriter._getdimensions() - except struct.error: + except (TypeError, struct.error): pass assert len(l) == 1 assert l[0][0] == 1