Author: Wim Lavrijsen <[email protected]>
Branch: 
Changeset: r89078:3831332c4c41
Date: 2016-12-15 13:59 -0800
http://bitbucket.org/pypy/pypy/changeset/3831332c4c41/

Log:    disable tests if compiler does not C++11

diff --git a/pypy/module/cppyy/test/conftest.py 
b/pypy/module/cppyy/test/conftest.py
--- a/pypy/module/cppyy/test/conftest.py
+++ b/pypy/module/cppyy/test/conftest.py
@@ -1,7 +1,13 @@
-import py
+import py, sys
 
 @py.test.mark.tryfirst
 def pytest_runtest_setup(item):
+    if 'linux' in sys.platform:
+        # tests require minimally std=c++11
+        cc_info = py.process.cmdexec('gcc -v --help')
+        if not '-std=c++11' in cc_info:
+            py.test.skip('skipping tests because gcc does not support C++11')
+
     if py.path.local.sysfind('genreflex') is None:
         import pypy.module.cppyy.capi.loadable_capi as lcapi
         if 'dummy' in lcapi.reflection_library:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to