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

fix: exclude deprecated options based on RF version #563

Merged

Conversation

reubenmiller
Copy link
Contributor

@reubenmiller reubenmiller commented Jan 10, 2024

Resolving deprecation notices (see #539) when using pabot with robotframework (RF) 6.1.

With RF 6.1 it includes more deprecation notices (even for some features that have been deprecated since RF 5.0).

Belows shows example of the deprecation notices as printed on the console prior to this PR.

ArgumentParser option 'auto_pythonpath' is deprecated since Robot Framework 5.0

tests/test_pabot.py: 56 warnings
  /home/runner/work/pabot/pabot/.tox/py/lib/python3.11/site-packages/robot/utils/argumentparser.py:80: UserWarning: ArgumentParser option 'auto_pythonpath' is deprecated since Robot Framework 5.0.
    warnings.warn("ArgumentParser option 'auto_pythonpath' is deprecated "

UserWarning: 'TestSuiteBuilder' argument 'included_suites' is deprecated and has no effect

tests/test_pabotsuitenames_io.py: 1 warning
  /home/runner/work/pabot/pabot/.tox/py/lib/python3.11/site-packages/robot/running/builder/builders.py:112: UserWarning: 'TestSuiteBuilder' argument 'included_suites' is deprecated and has no effect. Use the new 'included_files' argument or filter the created suite instead.
    warnings.warn("'TestSuiteBuilder' argument 'included_suites' is deprecated "

Notes

New RF versions have deprecated some options which result in console warning messages being shown to users
included_suites has been deprecated as of RF 6.1
@mkorpela mkorpela merged commit a7fd543 into mkorpela:main Jan 20, 2024
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.

2 participants