Skip to content

Commit 1c8c746

Browse files
test: remove unused EncodeDecimal from test framework util
1 parent 4ffee8c commit 1c8c746

File tree

1 file changed

+0
-6
lines changed
  • test/functional/test_framework

1 file changed

+0
-6
lines changed

test/functional/test_framework/util.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ def check_json_precision():
228228
raise RuntimeError("JSON encode/decode loses precision")
229229

230230

231-
def EncodeDecimal(o):
232-
if isinstance(o, Decimal):
233-
return str(o)
234-
raise TypeError(repr(o) + " is not JSON serializable")
235-
236-
237231
def count_bytes(hex_string):
238232
return len(bytearray.fromhex(hex_string))
239233

0 commit comments

Comments
 (0)