Skip to content

[BUG] Pytest: TypeError: %d format: a real number is required not NoneType #1258

Answered by ZzhengP
ZzhengP asked this question in Q&A
Discussion options

You must be logged in to vote

Change the default pytest logger argument can solve this problem: pytest --log-format="%(asctime)s %(levelname)s %(message)s"
https://docs.pytest.org/en/7.1.x/how-to/logging.html

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ZzhengP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1253 on May 18, 2023 01:47.