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

[BUG] Pytest currently generates 11 warnings #546

Open
cclauss opened this issue Dec 1, 2022 · 2 comments
Open

[BUG] Pytest currently generates 11 warnings #546

cclauss opened this issue Dec 1, 2022 · 2 comments

Comments

@cclauss
Copy link
Contributor

cclauss commented Dec 1, 2022

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to this repo's GitHub Actions results
  2. Look at pytest's output
=============================== warnings summary ===============================
../../../.cache/pypoetry/virtualenvs/prospector-VabSIZNe-py3.11/lib/python3.11/site-packages/coverage/pytracer.py:223
  /home/runner/.cache/pypoetry/virtualenvs/prospector-VabSIZNe-py3.11/lib/python3.11/site-packages/coverage/pytracer.py:223
DeprecationWarning: currentThread() is deprecated, use current_thread() instead
    self.thread = self.threading.currentThread()

prospector/config/__init__.py:3
  module 'sre_constants' is deprecated

tests/execution/test_execution.py::test_total_errors
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/mypy/test_mypy_tool.py::TestMypyTool::test_good_options
tests/tools/mypy/test_mypy_tool.py::TestMypyTool::test_unrecognised_options
tests/tools/pycodestyle/test_pycodestyle_tool.py::TestPycodestyleTool::test_absolute_path_is_computed_correctly
tests/tools/pylint/test_pylint_tool.py::TestPylintTool::test_absolute_path_is_computed_correctly
tests/tools/pylint/test_pylint_tool.py::TestPylintTool::test_checkpath_includes_no_init_modules
tests/tools/pylint/test_pylint_tool.py::TestPylintTool::test_no_duplicates_in_checkpath
  Creating a LegacyVersion has been deprecated and will be removed in the next major release

tests/tools/pycodestyle/test_pycodestyle_tool.py::TestPycodestyleTool::test_find_pep8_section_in_config
  [pep8] section is deprecated. Use [pycodestyle].

-- Docs: https://docs.pytest.org/en/stable/warnings.html

======================= 91 passed, 11 warnings in 24.52s =======================
@gopackgo90
Copy link
Contributor

In Python 3.11, sre_constants is now in re._constants. See python/cpython@1be3260#diff-13d8983b3481e2b0584fe946b8a4a0d43092e268242f74742fb20915b597d260R23.

@cclauss
Copy link
Contributor Author

cclauss commented Dec 5, 2022

self.threading.currentThread() --> self.threading.current_thread() fixed in #553

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

No branches or pull requests

2 participants