Commit aa15e8db authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Work around pytest bug #754

parent e3447076
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -87,7 +87,12 @@ if [ -d test ]; then
    ulimit -c unlimited

    # Need to set both _TEST and _CTX because doctests do not use _TEST.
    PYOPENCL_TEST=${cl_dev_real} PYOPENCL_CTX=${cl_dev_real} ${py_exe} -m pytest $TESTABLES
    # --junitxml=pytest.xml
    PYOPENCL_TEST=${cl_dev_real} PYOPENCL_CTX=${cl_dev_real} ${py_exe} -m pytest --tb=native $TESTABLES

    # Avoid https://github.com/pytest-dev/pytest/issues/754:
    # add --tb=native

    # Avoid https://github.com/pytest-dev/pytest/issues/785:
    # omit --junitxml=pytest.xml
  fi
fi