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

Avoid deprecated pytest.warns(None) #2548

Merged
merged 1 commit into from Nov 26, 2022
Merged

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Nov 25, 2022

tests/unit/config/test_config.py::TestConfigTestEnv::test_default_single_digit_factors
tests/unit/config/test_config.py::TestConfigTestEnv::test_default_single_digit_factors
tests/unit/config/test_config.py::TestConfigTestEnv::test_default_factors_conflict_ignore
  /usr/lib/python3.11/site-packages/_pytest/python.py:192: PytestRemovedIn8Warning: Passing None has been deprecated.
  See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases.

Contribution checklist:

(also see CONTRIBUTING.rst for details)

  • wrote descriptive pull request text
  • added/updated test(s)
  • [-] updated/extended the documentation
  • [-] added relevant issue keyword
    in message body
  • [-] added news fragment in changelog folder
  • added yourself to CONTRIBUTORS (preserving alphabetical order)

Let me know if this needs a news fragment.

    tests/unit/config/test_config.py::TestConfigTestEnv::test_default_single_digit_factors
    tests/unit/config/test_config.py::TestConfigTestEnv::test_default_single_digit_factors
    tests/unit/config/test_config.py::TestConfigTestEnv::test_default_factors_conflict_ignore
      /usr/lib/python3.11/site-packages/_pytest/python.py:192: PytestRemovedIn8Warning: Passing None has been deprecated.
      See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases.
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.

None yet

2 participants