Testing if cp35 works for modern C++
This commit is contained in:
@@ -25,14 +25,12 @@ def test_cpp14():
|
|||||||
|
|
||||||
# VC++ for Python 2.7 does not support modern standards
|
# VC++ for Python 2.7 does not support modern standards
|
||||||
# The manylinux1 docker image does not have a compiler which supports C++11
|
# The manylinux1 docker image does not have a compiler which supports C++11
|
||||||
# Python 3.4 and 3.5 are compiled with MSVC 10, which does not support C++14
|
add_env = {'CIBW_SKIP': 'cp27-win* pp27-win32', 'CIBW_ENVIRONMENT': 'STANDARD=14'}
|
||||||
add_env = {'CIBW_SKIP': 'cp27-win* pp27-win32 cp35-win*', 'CIBW_ENVIRONMENT': 'STANDARD=14'}
|
|
||||||
|
|
||||||
actual_wheels = utils.cibuildwheel_run(project_dir, add_env=add_env)
|
actual_wheels = utils.cibuildwheel_run(project_dir, add_env=add_env)
|
||||||
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
|
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0')
|
||||||
if 'cp27-cp27m-win' not in w
|
if 'cp27-cp27m-win' not in w
|
||||||
and 'pp27-pypy_73-win32' not in w
|
and 'pp27-pypy_73-win32' not in w]
|
||||||
and 'cp35-cp35m-win' not in w]
|
|
||||||
|
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
assert set(actual_wheels) == set(expected_wheels)
|
||||||
|
|
||||||
@@ -46,7 +44,7 @@ def test_cpp17():
|
|||||||
if os.environ.get('APPVEYOR_BUILD_WORKER_IMAGE', '') == 'Visual Studio 2015':
|
if os.environ.get('APPVEYOR_BUILD_WORKER_IMAGE', '') == 'Visual Studio 2015':
|
||||||
pytest.skip('Visual Studio 2015 does not support C++17')
|
pytest.skip('Visual Studio 2015 does not support C++17')
|
||||||
|
|
||||||
add_env = {'CIBW_SKIP': 'cp27-win* pp27-win32 cp35-win* pp36-win32', 'CIBW_ENVIRONMENT': 'STANDARD=17'}
|
add_env = {'CIBW_SKIP': 'cp27-win* pp27-win32 pp36-win32', 'CIBW_ENVIRONMENT': 'STANDARD=17'}
|
||||||
|
|
||||||
if utils.platform == 'macos':
|
if utils.platform == 'macos':
|
||||||
add_env['MACOSX_DEPLOYMENT_TARGET'] = '10.13'
|
add_env['MACOSX_DEPLOYMENT_TARGET'] = '10.13'
|
||||||
@@ -55,7 +53,6 @@ def test_cpp17():
|
|||||||
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0', macosx_deployment_target='10.13')
|
expected_wheels = [w for w in utils.expected_wheels('spam', '0.1.0', macosx_deployment_target='10.13')
|
||||||
if 'cp27-cp27m-win' not in w
|
if 'cp27-cp27m-win' not in w
|
||||||
and 'pp27-pypy_73-win32' not in w
|
and 'pp27-pypy_73-win32' not in w
|
||||||
and 'cp35-cp35m-win' not in w
|
|
||||||
and 'pp36-pypy36_pp73-win32' not in w]
|
and 'pp36-pypy36_pp73-win32' not in w]
|
||||||
|
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
assert set(actual_wheels) == set(expected_wheels)
|
||||||
|
|||||||
Reference in New Issue
Block a user