mozilla-services / updatebot

Automation for updating third party libraries for Firefox
Mozilla Public License 2.0
8 stars 5 forks source link

Add Support for Python 3.11 #352

Closed maltejur closed 4 months ago

maltejur commented 4 months ago

There seem to have been some changes to IntEnum that do not allow us to use dir() anymore for listing the enum keys. I get the following error when trying to run the tests:

pymysql.err.DataError: (1366, "Incorrect integer value: '<method 'as_integer_ratio' of 'int' objects>' for column 'id' at row 1")

It seems as_integer_ratio incorrectly gets picked up as a key of the enum. So switch to directly iterating the enums and accessing the name attribute instead. Also add Python 3.11 to the Github Workflow.