Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boxed test fails with new xdist 3.0.2 #566

Open
Chedi opened this issue Nov 15, 2022 · 0 comments
Open

boxed test fails with new xdist 3.0.2 #566

Chedi opened this issue Nov 15, 2022 · 0 comments

Comments

@Chedi
Copy link
Contributor

Chedi commented Nov 15, 2022

Summary

The boxed option has been removed from new version of xdist (>2.5.0), causing the boxed test to fail

============================= test session starts ==============================
platform linux -- Python 3.11.0, pytest-7.1.3, pluggy-1.0.0
rootdir: /builddir/build/BUILD/pytest-cov-4.0.0, configfile: setup.cfg, testpaths: tests
plugins: cov-4.0.0, xdist-3.0.2
collected 128 items / 18 deselected / 110 selected
tests/test_pytest_cov.py ............s.................................. [ 42%]
...........................F.................................s. [100%]
=================================== FAILURES ===================================
_______________________________ test_dist_boxed ________________________________
testdir = <Testdir local('/tmp/pytest-of-mockbuild/pytest-0/test_dist_boxed0')>
@pytest.mark.skipif('sys.platform == "win32"')
def test_dist_boxed(testdir):
script = testdir.makepyfile(SCRIPT_SIMPLE)

    result = testdir.runpytest('-v',
                               '--assert=plain',
                               '--cov=%s' % script.dirpath(),
                               '--boxed',
                               script)
  result.stdout.fnmatch_lines([
        '*- coverage: platform *, python * -*',
        'test_dist_boxed* %s*' % SCRIPT_SIMPLE_RESULT,
        '*1 passed*'
    ])

E Failed: remains unmatched: '*- coverage: platform , python * -'
/builddir/build/BUILD/pytest-cov-4.0.0/tests/test_pytest_cov.py:1569: Failed
----------------------------- Captured stdout call -----------------------------
running: /usr/bin/python3 -mpytest --basetemp=/tmp/pytest-of-mockbuild/pytest-0/test_dist_boxed0/runpytest-0 -v --assert=plain --cov=/tmp/pytest-of-mockbuild/pytest-0/test_dist_boxed0 --boxed /tmp/pytest-of-mockbuild/pytest-0/test_dist_boxed0/test_dist_boxed.py --basetemp=/tmp/pytest-of-mockbuild/pytest-0/basetemp
in: /tmp/pytest-of-mockbuild/pytest-0/test_dist_boxed0
----------------------------- Captured stderr call -----------------------------
ERROR: usage: main.py [options] [file_or_dir] [file_or_dir] [...]
main.py: error: unrecognized arguments: --boxed
inifile: None
rootdir: /tmp/pytest-of-mockbuild/pytest-0/test_dist_boxed0
=============================== warnings summary ===============================
../../../../usr/lib/python3.11/site-packages/_pytest/config/init.py:1199
/usr/lib/python3.11/site-packages/_pytest/config/init.py:1199: PytestRemovedIn8Warning: The --strict option is deprecated, use --strict-markers instead.
self.issue_config_time_warning(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [1] tests/test_pytest_cov.py:367: condition: coverage.version_info >= (6, 3)
SKIPPED [1] tests/test_pytest_cov.py:1952: condition: coverage.version_info >= (5, 0)
FAILED tests/test_pytest_cov.py::test_dist_boxed - Failed: remains unmatched:...
= 1 failed, 107 passed, 2 skipped, 18 deselected, 1 warning in 66.20s (0:01:06) =

Version info:

Python 3.11.0
pytest-7.1.3
pluggy-1.0.0
pytest-cov-4.0.0
plugins: cov-4.0.0
xdist-3.0.2

possible workaround: disabling this test for newer version of xdist
#565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant