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

imghdr is deprecated and slated for removal in Python 3.13 #448

Closed
4 tasks done
luoshuijs opened this issue Mar 2, 2023 · 0 comments · Fixed by #344
Closed
4 tasks done

imghdr is deprecated and slated for removal in Python 3.13 #448

luoshuijs opened this issue Mar 2, 2023 · 0 comments · Fixed by #344
Labels
dependencies ⬆ Update dependency

Comments

@luoshuijs
Copy link
Contributor

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经使用一个干净且无其它非必要的插件的环境测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。
  • 我已知晓并同意,如果我不按照模板提供的指示进行填写,则我的 Issue 可能会被无条件删除。

程序版本 (Commit Id)

Refactor Tests commit

运行环境

Ubuntu

运行架构

AMD64

重现步骤

Run Integration Test

期望的结果是什么?

使用其他办法替代和删除该功能

实际的结果是什么?

Run source venv/bin/activate
  
============================= test session starts ==============================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0
rootdir: /home/runner/work/PaiGram/PaiGram, configfile: pyproject.toml
plugins: anyio-3.6.2, flaky-3.7.0, asyncio-0.20.3
asyncio: mode=Mode.AUTO

----------------------------- live log collection ------------------------------
PlayersDataBase
collected 8 items

tests/integration/test_mysql.py::test_mysql PASSED                       [ 12%]
tests/integration/test_mysql.py::test_init_create_all PASSED             [ 25%]
tests/integration/test_player_service.py::TestPlayersService::test_add_player PASSED [ 37%]
tests/integration/test_player_service.py::TestPlayersService::test_get_player_by_user_id PASSED [ 50%]
tests/integration/test_player_service.py::TestPlayersService::test_remove_all_by_user_id PASSED [ 62%]
tests/integration/test_player_service.py::TestPlayersService::test_1 PASSED [ 75%]
tests/integration/test_redis.py::test_mysql PASSED                       [ 87%]
tests/integration/test_redis.py::test_redis_ping PASSED                  [100%]

=============================== warnings summary ===============================
utils/models/base.py:1
  /home/runner/work/PaiGram/PaiGram/utils/models/base.py:1: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
    import imghdr

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================= 8 passed, 1 warning in 0.20s =========================

简单的复现代码/链接(可选)

No response

日志记录(可选)

No response

补充说明(可选)

No response

@luoshuijs luoshuijs added tool🔧 Update tool dependencies ⬆ Update dependency and removed tool🔧 Update tool labels Mar 2, 2023
@luoshuijs luoshuijs moved this to ✅ Done in PaiGram V4 Mar 9, 2023
@luoshuijs luoshuijs mentioned this issue Mar 9, 2023
15 tasks
@luoshuijs luoshuijs linked a pull request Mar 9, 2023 that will close this issue
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ⬆ Update dependency
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant