flask-sqlalchemy icon indicating copy to clipboard operation
flask-sqlalchemy copied to clipboard

Python 3.12 changes cause test failures due to deprecation warning

Open s-t-e-v-e-n-k opened this issue 6 months ago • 0 comments

Running the test suite under Python 3.12 has multiple failures that all stem from:

DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).

Since warnings are treated as errors, this causes a failure.

s-t-e-v-e-n-k avatar Jan 09 '24 04:01 s-t-e-v-e-n-k