represent util.NONE as 'null' in JSON output

was '"None"' before
This commit is contained in:
Mike Fährmann
2023-11-02 15:23:28 +01:00
parent 56cd9d408d
commit 72b18d701f
3 changed files with 11 additions and 3 deletions

View File

@@ -750,6 +750,7 @@ def hash(value):
self.assertIs(obj(), obj)
self.assertIs(obj(1, "a"), obj)
self.assertIs(obj(foo="bar"), obj)
self.assertEqual(util.json_dumps(obj), "null")
i = 0
for _ in obj: