diff options
author | Jeff Quast <jquast@io.com> | 2015-01-03 22:16:16 -0800 |
---|---|---|
committer | Jeff Quast <jquast@io.com> | 2015-01-03 22:16:16 -0800 |
commit | 213c3a52a8f64ae147f4cb240a85a7f789bfff5d (patch) | |
tree | d632fa18022ff032e14f20b3a1973e2296b29ce5 | |
parent | 58a381ccf551c4d5d796b17e1271f604e98b0234 (diff) | |
download | blessings-213c3a52a8f64ae147f4cb240a85a7f789bfff5d.tar.gz |
skip ^C test on pypy
-rw-r--r-- | blessed/tests/test_keyboard.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/blessed/tests/test_keyboard.py b/blessed/tests/test_keyboard.py index 6a2a25c..c81154f 100644 --- a/blessed/tests/test_keyboard.py +++ b/blessed/tests/test_keyboard.py @@ -8,6 +8,7 @@ try: except ImportError: import io StringIO = io.StringIO +import platform import signal import curses import time @@ -426,8 +427,9 @@ def test_inkey_0s_cbreak_multibyte_utf8(): assert math.floor(time.time() - stime) == 0.0 -@pytest.mark.skipif(os.environ.get('TRAVIS', None) is not None, - reason="travis-ci doesn't handle ^C well.") +@pytest.mark.skipif(os.environ.get('TRAVIS', None) is not None or + platform.python_implementation() == 'PyPy', + reason="travis-ci nor pypy handle ^C very well.") def test_inkey_0s_raw_ctrl_c(): "0-second inkey with raw allows receiving ^C." pid, master_fd = pty.fork() |