Skip to content

Commit 0734d45

Browse files
committed
Update tests from ea80865 to run on Python 3.2
1 parent 6761340 commit 0734d45

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -358,32 +358,32 @@ def test_root_list(self):
358358

359359
def test_fail_prone_list_1(self):
360360
""" Test making and applying a patch of the root is a list """
361-
src = [u'a', u'r', u'b']
362-
dst = [u'b', u'o']
361+
src = ['a', 'r', 'b']
362+
dst = ['b', 'o']
363363
patch = jsonpatch.make_patch(src, dst)
364364
res = patch.apply(src)
365365
self.assertEqual(res, dst)
366366

367367
def test_fail_prone_list_2(self):
368368
""" Test making and applying a patch of the root is a list """
369-
src = [u'a', u'r', u'b', u'x', u'm', u'n']
370-
dst = [u'b', u'o', u'm', u'n']
369+
src = ['a', 'r', 'b', 'x', 'm', 'n']
370+
dst = ['b', 'o', 'm', 'n']
371371
patch = jsonpatch.make_patch(src, dst)
372372
res = patch.apply(src)
373373
self.assertEqual(res, dst)
374374

375375
def test_fail_prone_list_3(self):
376376
""" Test making and applying a patch of the root is a list """
377-
src = [u'boo1', u'bar', u'foo1', u'qux']
378-
dst = [u'qux', u'bar']
377+
src = ['boo1', 'bar', 'foo1', 'qux']
378+
dst = ['qux', 'bar']
379379
patch = jsonpatch.make_patch(src, dst)
380380
res = patch.apply(src)
381381
self.assertEqual(res, dst)
382382

383383
def test_fail_prone_list_4(self):
384384
""" Test making and applying a patch of the root is a list """
385-
src = [u'bar1', 59, u'foo1', u'foo']
386-
dst = [u'foo', u'bar', u'foo1']
385+
src = ['bar1', 59, 'foo1', 'foo']
386+
dst = ['foo', 'bar', 'foo1']
387387
patch = jsonpatch.make_patch(src, dst)
388388
res = patch.apply(src)
389389
self.assertEqual(res, dst)

0 commit comments

Comments
 (0)