fix test on python2.4

--HG--
branch : trunk
This commit is contained in:
holger krekel 2010-07-26 13:34:59 +02:00
parent ed8e24312c
commit b14f8505d0
1 changed files with 1 additions and 1 deletions

View File

@ -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