From 84f80db402dfb468fd8dd14119968567d46b130c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Sun, 11 Nov 2012 10:43:58 +0100 Subject: make doctests compatible with Python 3.3 --- jsonpointer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'jsonpointer.py') diff --git a/jsonpointer.py b/jsonpointer.py index e0078b9..3a86773 100644 --- a/jsonpointer.py +++ b/jsonpointer.py @@ -112,14 +112,14 @@ def set_pointer(doc, pointer, value): >>> pointer = JsonPointer('/bar') >>> pointer.set(obj, 'one', '0') >>> pointer.set(obj, 'two', '1') - >>> obj - {'foo': 2, 'bar': ['one', 'two']} + >>> obj == {'foo': 2, 'bar': ['one', 'two']} + True >>> obj = {"foo": 2, "bar": []} >>> pointer = JsonPointer('/bar') >>> pointer.set(obj, 5, '0/x') - >>> obj - {'foo': 2, 'bar': [{'x': 5}]} + >>> obj == {'foo': 2, 'bar': [{'x': 5}]} + True >>> obj = {'foo': 2, 'bar': [{'x': 5}]} >>> pointer = JsonPointer('/bar/0') -- cgit v1.2.1