Skip to content

Commit

Permalink
Fix datetime deprecation warning pattern
Browse files Browse the repository at this point in the history
In pytest config -- using `datetime.datetime.utcfromtimestamp` is
important for matching correctly.

For some reason, the previous pattern (as well as the fixed one) works
under a local dev environment with 3.12.
  • Loading branch information
sirosen committed Nov 22, 2023
1 parent 2975756 commit 3290ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ warn_no_return = true
filterwarnings =
error
# dateutil has a Python 3.12 compatibility issue.
ignore:datetime.utcfromtimestamp\(\) is deprecated:DeprecationWarning
ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated:DeprecationWarning

0 comments on commit 3290ca5

Please sign in to comment.