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

threading.Thread.setDaemon has been deprecated in favor of setting daemon attribute directly in Python 3.10 #99

Closed
tirkarthi opened this issue Apr 17, 2021 · 0 comments · Fixed by #100

Comments

@tirkarthi
Copy link
Contributor

Ref : python/cpython#25174

python -m pytest tests/test_endpoint.py::EndpointTest::test_http_server               
========================================================================= test session starts ==========================================================================
platform linux -- Python 3.10.0a7+, pytest-6.3.0.dev369+g9078c3ce2, py-1.10.0, pluggy-0.13.1
rootdir: /root/checked_repos_clone/prometheus_flask_exporter
plugins: flake8-1.0.7, virtualenv-1.7.0, shutil-1.7.0, cov-2.11.1
collected 1 item                                                                                                                                                       

tests/test_endpoint.py .                                                                                                                                         [100%]

=========================================================================== warnings summary ===========================================================================
tests/test_endpoint.py::EndpointTest::test_http_server
tests/test_endpoint.py::EndpointTest::test_http_server
tests/test_endpoint.py::EndpointTest::test_http_server
  /root/checked_repos_clone/prometheus_flask_exporter/prometheus_flask_exporter/__init__.py:304: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
    thread.setDaemon(True)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
==================================================================== 1 passed, 3 warnings in 0.31s =====================================================================
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 a pull request may close this issue.

1 participant