[pypy-commit] pypy py3.6: add the same skip that test_curses.py uses
cfbolz
pypy.commits at gmail.com
Wed Feb 20 08:58:30 EST 2019
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r96114:888ecff170da
Date: 2019-02-20 14:57 +0100
http://bitbucket.org/pypy/pypy/changeset/888ecff170da/
Log: add the same skip that test_curses.py uses
diff --git a/pypy/module/readline/test/test_readline.py b/pypy/module/readline/test/test_readline.py
--- a/pypy/module/readline/test/test_readline.py
+++ b/pypy/module/readline/test/test_readline.py
@@ -1,5 +1,14 @@
# -*- coding: utf-8 -*-
import sys
+import pytest
+
+def setup_module(mod):
+ try:
+ import curses
+ curses.setupterm()
+ except:
+ pytest.skip("Cannot test this here")
+
class AppTestReadline:
spaceconfig = dict(usemodules=[
More information about the pypy-commit
mailing list