Add test/test_numpy_suite_numeric.py

This commit is contained in:
Roman Yurchak 2018-09-27 11:29:09 +02:00
parent f58028e87b
commit 3ff79f6a2f
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
def test_numpy(selenium_standalone):
selenium = selenium_standalone
selenium.load_package('pytest')
selenium.load_package('numpy')
selenium.load_package('nose')
selenium.run('from pathlib import Path')
selenium.run('import numpy')
selenium.run('import pytest')
selenium.run('base_dir = Path(numpy.__file__).parent')
try:
selenium.run("pytest.main(['--continue-on-collection-errors', '-v',"
" base_dir / 'core/tests/test_numeric.py'])")
except Exception as exc: # noqa
print('Exception', print(exc))
print('# Logs')
logs = '\n'.join(selenium.logs)
print(logs)