Fix make_patch with unicode paths
This commit is contained in:
@@ -1 +1 @@
|
||||
jsonpointer>=1.5
|
||||
jsonpointer>=1.9
|
||||
|
||||
8
tests.py
8
tests.py
@@ -351,6 +351,14 @@ class MakePatchTestCase(unittest.TestCase):
|
||||
res = patch.apply(src)
|
||||
self.assertEqual(res, dst)
|
||||
|
||||
def test_make_patch_unicode(self):
|
||||
""" Test if unicode keys and values are handled correctly """
|
||||
src = {}
|
||||
dst = {u'\xee': u'\xee'}
|
||||
patch = jsonpatch.make_patch(src, dst)
|
||||
res = patch.apply(src)
|
||||
self.assertEqual(res, dst)
|
||||
|
||||
|
||||
class InvalidInputTests(unittest.TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user