prospector
prospector copied to clipboard
[BUG] Pytest currently generates 11 warnings
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to this repo's GitHub Actions results
- Look at pytest's output
- The first warning was fixed in nedbat/coveragepy#1145
- The second warning is https://docs.python.org/3/whatsnew/3.11.html?highlight=sre_constants#modules
=============================== 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 =======================
In Python 3.11, sre_constants is now in re._constants. See https://github.com/python/cpython/commit/1be3260a90f16aae334d993aecf7b70426f98013#diff-13d8983b3481e2b0584fe946b8a4a0d43092e268242f74742fb20915b597d260R23.
self.threading.currentThread() --> self.threading.current_thread() fixed in #553