Skip to content

test_json fails with sqlite 3.45 #704

@antonio-rojas

Description

@antonio-rojas

With sqlite 3.45, test_json fails with multiple errors like

ERROR: test_query_float (test_json.TestJson.test_query_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "<string>", line 2, in test_query_float
  File "/build/python-pony/src/pony-0.7.17/pony/orm/core.py", line 519, in new_func
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/build/python-pony/src/pony-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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions