summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2015-04-10 14:56:42 +0200
committerStefan Behnel <stefan_ml@behnel.de>2015-04-10 14:56:42 +0200
commit336416bd600d67776a321fd199ad7ccefb547163 (patch)
tree57ecfc4914f466a75b66c6c2221ef14c9c47fd41 /test.py
parentdf7a8b8aade0162a31aacc90cc3811735445ac99 (diff)
downloadpython-lxml-336416bd600d67776a321fd199ad7ccefb547163.tar.gz
work around pypy3 bug in test runner
Diffstat (limited to 'test.py')
-rw-r--r--test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.py b/test.py
index fd3747df..b3f0eb5d 100644
--- a/test.py
+++ b/test.py
@@ -481,7 +481,8 @@ def main(argv):
cols = curses.tigetnum('cols')
if cols > 0:
cfg.screen_width = cols
- except curses.error:
+ except (curses.error, TypeError):
+ # tigetnum() is broken in PyPy3 and raises TypeError
pass
# Option processing