Skip to content

{CI} pytest: --boxed argument is deprecated, use --forked instead#347

Merged
wangzelin007 merged 1 commit into
Azure:devfrom
wangzelin007:fix-pytest
Oct 26, 2022
Merged

{CI} pytest: --boxed argument is deprecated, use --forked instead#347
wangzelin007 merged 1 commit into
Azure:devfrom
wangzelin007:fix-pytest

Conversation

@wangzelin007
Copy link
Copy Markdown
Member

@wangzelin007 wangzelin007 commented Oct 26, 2022

The latest pytest-xdist 3.0.2 (2022-10-25) has removed --boxed argument.
But we still need this functionality, install pytest-forked separately and use --forked instead.
Error log:

ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
__main__.py: error: unrecognized arguments: --boxed
  inifile: None
  rootdir: /mnt/vss/_work/1/s/src/azure-cli-core

Test screenshot:
image
image

@wangzelin007 wangzelin007 merged commit da19747 into Azure:dev Oct 26, 2022
@wangzelin007 wangzelin007 mentioned this pull request Oct 26, 2022
Comment thread setup.py
@@ -72,6 +72,7 @@
'knack',
'pylint==2.11.1',
'pytest-xdist', # depends on pytest-forked
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is no longer true.

https://pytest-xdist.readthedocs.io/en/latest/changelog.html#pytest-xdist-2-5-0-2021-12-10

#468: The --boxed command line argument is deprecated. Install pytest-forked and use --forked instead. pytest-xdist 3.0.0 will remove the --boxed argument and pytest-forked dependency.

RenSilvaAU pushed a commit to RenSilvaAU/azure-cli-dev-tools that referenced this pull request Aug 7, 2025
…lid-json-file

Show `ParseJsonFailed` error logs when failed to parse swagger json file
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

Successfully merging this pull request may close these issues.

3 participants