On Fri, Jun 07, 2024 at 06:12:31PM +0100, Jelmer Vernooij wrote: > I've patched the git repo to mark python 3.12 as supported. > > However, there are several test failures with python 3.12 that need to be > fixed: > > ====================================================================== > ERROR: test_query_float (pony.orm.tests.test_json.TestJson.test_query_float) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun > return caller(func, *(extras + args), **kw) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/home/jelmer/src/build-area/ponyorm-0.7.17/pony/orm/core.py", line > 519, in new_func > result = func(*args, **kwargs) > ^^^^^^^^^^^^^^^^^^^^^ > File > "/home/jelmer/src/build-area/ponyorm-0.7.17/pony/orm/tests/test_json.py", > line 91, in test_query_float > self.assertAlmostEqual(val, 9.7) > File "/usr/lib/python3.11/unittest/case.py", line 904, in assertAlmostEqual > diff = abs(first - second) > ~~~~~~^~~~~~~~ > TypeError: unsupported operand type(s) for -: 'NoneType' and 'float'
This looks like https://github.com/ponyorm/pony/issues/704. Does the latest upstream release (0.7.19) fare any better? -- Colin Watson (he/him) [cjwat...@debian.org]