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'
======================================================================
FAIL: test_composite_param
(pony.orm.tests.test_json.TestJson.test_composite_param)
----------------------------------------------------------------------
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
318, in test_composite_param
self.assertEqual(val, 'Wi-Fi')
AssertionError: None != 'Wi-Fi'
======================================================================
FAIL: test_equal_json_1 (pony.orm.tests.test_json.TestJson.test_equal_json_1)
----------------------------------------------------------------------
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
335, in test_equal_json_1
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_equal_json_2 (pony.orm.tests.test_json.TestJson.test_equal_json_2)
----------------------------------------------------------------------
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
343, in test_equal_json_2
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_equal_list_1 (pony.orm.tests.test_json.TestJson.test_equal_list_1)
----------------------------------------------------------------------
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
369, in test_equal_list_1
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_equal_list_3 (pony.orm.tests.test_json.TestJson.test_equal_list_3)
----------------------------------------------------------------------
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
381, in test_equal_list_3
self.assertIsNotNone(p)
AssertionError: unexpectedly None
======================================================================
FAIL: test_equal_list_4 (pony.orm.tests.test_json.TestJson.test_equal_list_4)
----------------------------------------------------------------------
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
389, in test_equal_list_4
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_len (pony.orm.tests.test_json.TestJson.test_len)
----------------------------------------------------------------------
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
288, in test_len
self.assertEqual(val, 3)
AssertionError: None != 3
======================================================================
FAIL: test_ne_empty_list (pony.orm.tests.test_json.TestJson.test_ne_empty_list)
----------------------------------------------------------------------
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
415, in test_ne_empty_list
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_ne_json_1 (pony.orm.tests.test_json.TestJson.test_ne_json_1)
----------------------------------------------------------------------
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
350, in test_ne_json_1
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_ne_json_2 (pony.orm.tests.test_json.TestJson.test_ne_json_2)
----------------------------------------------------------------------
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
359, in test_ne_json_2
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_ne_list (pony.orm.tests.test_json.TestJson.test_ne_list)
----------------------------------------------------------------------
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
408, in test_ne_list
self.assertTrue(p)
AssertionError: None is not true
======================================================================
FAIL: test_nonzero (pony.orm.tests.test_json.TestJson.test_nonzero)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/jelmer/src/build-area/ponyorm-0.7.17/pony/orm/tests/test_json.py", line
659, in test_nonzero
self.assertEqual(tuple(sorted(val)), (2, 3, 5, 7, 9, 11))
AssertionError: Tuples differ: () != (2, 3, 5, 7, 9, 11)
Second tuple contains 6 additional elements.
First extra element 0:
2
- ()
+ (2, 3, 5, 7, 9, 11)
======================================================================
FAIL: test_query_dict (pony.orm.tests.test_json.TestJson.test_query_dict)
----------------------------------------------------------------------
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
117, in test_query_dict
self.assertDictEqual(val, {
AssertionError: None is not an instance of <class 'dict'> : First argument is
not a dictionary
======================================================================
FAIL: test_query_false (pony.orm.tests.test_json.TestJson.test_query_false)
----------------------------------------------------------------------
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
101, in test_query_false
self.assertIs(val, False)
AssertionError: None is not False
======================================================================
FAIL: test_query_int (pony.orm.tests.test_json.TestJson.test_query_int)
----------------------------------------------------------------------
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
86, in test_query_int
self.assertEqual(val, 2048)
AssertionError: None != 2048
======================================================================
FAIL: test_query_list (pony.orm.tests.test_json.TestJson.test_query_list)
----------------------------------------------------------------------
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
111, in test_query_list
self.assertListEqual(val, ['Gold', 'Silver', 'Space Gray'])
AssertionError: First sequence is not a list: None
======================================================================
FAIL: test_query_true (pony.orm.tests.test_json.TestJson.test_query_true)
----------------------------------------------------------------------
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
96, in test_query_true
self.assertIs(val, True)
AssertionError: None is not True