Source: pytest-mpi Version: 0.4-3 Severity: normal Control: forwarded -1 https://github.com/aragilar/pytest-mpi/issues/14
After applying upstream PR#12 (https://github.com/aragilar/pytest-mpi/pull/12) in debian/patches/fix_pytest6_PR12.patch, tests test_mpi_with_mpi and test_mpi_only_mpi still fail with pytest 6.0.2-2. An error "ValueError: mpi mark does not take positional args" is easily fixed with - @pytest.mark.mpi(2) + @pytest.mark.mpi(min_size=2) def test_size_fail_pos(): in tests/test_markers.py But then there are other errors: $ python3 -m pytest -k "test_mpi_with_mpi or test_mpi_only_mpi" -p pytester -vv ... _____ test_mpi_with_mpi _____ mpi_testdir = <Testdir local('/tmp/pytest-of-projects/pytest-12/test_mpi_with_mpi0')>, has_mpi4py = True def test_mpi_with_mpi(mpi_testdir, has_mpi4py): mpi_testdir.makepyfile(MPI_TEST_CODE) result = mpi_testdir.runpytest("--with-mpi") if has_mpi4py: > result.assert_outcomes(passed=3, errors=1, skipped=1) E AssertionError: assert {'errors': 0,\n 'failed': 0,\n 'passed': 4,\n 'skipped': 1,\n 'xfailed': 0,\n 'xpassed': 0} == {'errors': 1,\n 'failed': 0,\n 'passed': 3,\n 'skipped': 1,\n 'xfailed': 0,\n 'xpassed': 0} E Common items: E {'failed': 0, 'skipped': 1, 'xfailed': 0, 'xpassed': 0} E Differing items: E {'passed': 4} != {'passed': 3} E {'errors': 0} != {'errors': 1} E Full diff: E { E - 'errors': 1, E ? ^ E + 'errors': 0, E ? ^ E 'failed': 0, E - 'passed': 3, E ? ^ E + 'passed': 4, E ? ^ E 'skipped': 1, E 'xfailed': 0, E 'xpassed': 0, E } /projects/python/build/pytest-mpi/tests/test_markers.py:70: AssertionError Likewise for test_mpi_only_mpi. Reported upstream at https://github.com/aragilar/pytest-mpi/issues/14 -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-1-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled