Commits

Ronny Pfannschmidt committed e880a84

use importorskip instead of custom handling

Comments (0)

Files changed (1)

pypy/rpython/module/test/test_ll_termios.py

-import py
+import pytest
 # tests here are run as snippets through a pexpected python subprocess
 
 def setup_module(mod):
-    try:
-        import termios
-        mod.termios = termios
-    except ImportError:
-        py.test.skip("termios not found")
+    pytest.importorskip('termios')
 
 class ExpectTestLLTermios(object):
     def test_tcgetattr(self):