Accepting request 874732 from devel:languages:python:numeric

- Disable most of the test suite. The offending code not working
  with pytest 6.2 is in the test suite, not the plugin code itself
  gh#aragilar/pytest-mpi#17

OBS-URL: https://build.opensuse.org/request/show/874732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mpi?expand=0&rev=2
This commit is contained in:
Richard Brown 2021-02-25 17:27:28 +00:00 committed by Git OBS Bridge
commit 091cc1c4d1
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 23 22:07:18 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Disable most of the test suite. The offending code not working
with pytest 6.2 is in the test suite, not the plugin code itself
gh#aragilar/pytest-mpi#17
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 4 13:23:28 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com> Fri Dec 4 13:23:28 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pytest-mpi # spec file for package python-pytest-mpi
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -57,8 +57,9 @@ mpi plugin for pytest to collect information from openmpi-based tests.
export PATH=${PATH}:%{_libdir}/mpi/gcc/openmpi2/bin export PATH=${PATH}:%{_libdir}/mpi/gcc/openmpi2/bin
source %{_libdir}/mpi/gcc/openmpi2/bin/mpivars.sh source %{_libdir}/mpi/gcc/openmpi2/bin/mpivars.sh
# include `-p pytester` as pytester needs to be manually activated (see https://pytest-mpi.readthedocs.io/en/latest/contributing.html) # include `-p pytester` as pytester needs to be manually activated (see https://pytest-mpi.readthedocs.io/en/latest/contributing.html)
# Also see gh#aragilar/pytest-mpi#14 for two failing tests disabled here # our pytest version does not like the subclassing of _pytest.Testdir. This disables almost the entire test suite
%pytest -v -p pytester -k 'not test_mpi_with_mpi and not test_mpi_only_mpi' # gh#aragilar/pytest-mpi#17
%pytest -v -p pytester -k "not (test_fixtures or (test_markers and (with_mpi or only_mpi or under_mpi)))"
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md