Author: Ronny Pfannschmidt <[email protected]>
Branch: pytest
Changeset: r57763:e880a84e5be1
Date: 2012-10-03 13:10 +0200
http://bitbucket.org/pypy/pypy/changeset/e880a84e5be1/
Log: use importorskip instead of custom handling
diff --git a/pypy/rpython/module/test/test_ll_termios.py
b/pypy/rpython/module/test/test_ll_termios.py
--- a/pypy/rpython/module/test/test_ll_termios.py
+++ b/pypy/rpython/module/test/test_ll_termios.py
@@ -1,12 +1,8 @@
-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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit