[pypy-commit] pypy default: Skip tests in module/cppyy when 'genreflex' is not installed.
amauryfa
noreply at buildbot.pypy.org
Fri Jun 22 00:26:22 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r55754:a9d5c0c7e8e5
Date: 2012-06-22 00:23 +0200
http://bitbucket.org/pypy/pypy/changeset/a9d5c0c7e8e5/
Log: Skip tests in module/cppyy when 'genreflex' is not installed.
diff --git a/pypy/module/cppyy/test/conftest.py b/pypy/module/cppyy/test/conftest.py
new file mode 100644
--- /dev/null
+++ b/pypy/module/cppyy/test/conftest.py
@@ -0,0 +1,5 @@
+import py
+
+def pytest_runtest_setup(item):
+ if py.path.local.sysfind('genreflex') is None:
+ py.test.skip("genreflex is not installed")
More information about the pypy-commit
mailing list