You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @kfrydel — the team is currently tracking this issue here: boto/boto3#3889. I'm going to resolve this is as a duplicate. Here was the comment that I added on that issue:
...The team is aware of this issue and working on addressing the warnings. These deprecations won't cause impact currently beyond the warnings. The required changes are not fully backwards compatible for existing usage. We'll be prioritizing a more robust fix in an upcoming release.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
We are switching our project to Python 3.12. Our tests that use botocore started to fail with:
I know I can add an ignore to pytest.ini but it would be good to avoid ignores.
Expected Behavior
No warning is raised.
Current Behavior
DeprecationWarning is issued
Reproduction Steps
Create a file with valid credentials:
and run pytest for the file:
Possible Solution
Use timezone-aware objects to represent datetimes in UTC:
datetime.datetime.now(datetime.UTC)
instead ofdatetime.datetime.utcnow()
.Additional Information/Context
No response
SDK version used
1.31.63
Environment details (OS name and version, etc.)
Ubuntu 22.04, Python 3.12
The text was updated successfully, but these errors were encountered: