diff options
author | Stefan Kögl <stefan@skoegl.net> | 2013-10-09 18:55:22 +0200 |
---|---|---|
committer | Stefan Kögl <stefan@skoegl.net> | 2013-10-09 18:55:22 +0200 |
commit | 4d0389238e1d963f859af42a9a0fa38483a7fa41 (patch) | |
tree | 5bf298b1e6fda6bb159767729e1a94584feb552e /ext_tests.py | |
parent | bd90a7a39d1307f78ad89103e960d249aafacacb (diff) | |
download | python-json-patch-4d0389238e1d963f859af42a9a0fa38483a7fa41.tar.gz |
handle duplicate JSON keys only when possible
Diffstat (limited to 'ext_tests.py')
-rwxr-xr-x | ext_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext_tests.py b/ext_tests.py index 476f66d..5e5ded8 100755 --- a/ext_tests.py +++ b/ext_tests.py @@ -35,7 +35,6 @@ https://github.com/json-patch/json-patch-tests """ from functools import partial -import json import doctest import unittest import jsonpatch @@ -94,7 +93,8 @@ def get_suite(filenames): for testfile in filenames: with open(testfile) as f: - tests = json.load(f, object_pairs_hook=jsonpatch.multidict) + # we use the (potentially) patched version of json.load here + tests = jsonpatch.json.load(f) cls = make_test_case(tests) suite.addTest(unittest.makeSuite(cls)) |