When warnings are enabled (using e.g. PYTHONWARNINGS="d" environmental variable), then test suite with Python 3.3 triggers 117 DeprecationWarnings.
$ PYTHONPATH="build/lib.linux-x86_64-3.3" python3.3 simplejson/tests/__init__.py
/tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:52: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val)))
/tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:55: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val, bigint_as_string=True)))
./tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:41: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val)))
/tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:44: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val, bigint_as_string=True)))
./tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:19: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val)))
/tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:22: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val, bigint_as_string=True)))
./tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:30: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val)))
/tmp/simplejson-3.0.4/simplejson/tests/test_bigint_as_string.py:33: DeprecationWarning: Please use assertEqual instead.
json.loads(json.dumps(val, bigint_as_string=True)))
....../tmp/simplejson-3.0.4/simplejson/tests/test_decode.py:17: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(rval, decimal.Decimal('1.1'))
./tmp/simplejson-3.0.4/simplejson/tests/test_decode.py:29: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(rval, {"key":"value", "k":"v"})
.../tmp/simplejson-3.0.4/simplejson/tests/test_decode.py:22: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(rval, 1.0)
...../tmp/simplejson-3.0.4/simplejson/tests/test_default.py:9: DeprecationWarning: Please use assertEqual instead.
json.dumps(repr(type)))
../tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:18: DeprecationWarning: Please use assertTrue instead.
self.assert_(json.loads(json.dumps(c)) is c)
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:19: DeprecationWarning: Please use assertTrue instead.
self.assert_(json.loads(json.dumps([c]))[0] is c)
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:20: DeprecationWarning: Please use assertTrue instead.
self.assert_(json.loads(json.dumps({'a': c}))['a'] is c)
./tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:14: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(sio.getvalue(), '{}')
./tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:54: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps({}), '{}')
./tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:59: DeprecationWarning: Please use assertEqual instead.
'{"false": true, "true": false}')
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:68: DeprecationWarning: Please use assertEqual instead.
'{"2": 3.0, "4.0": 5, "6": true, "7": 0, "false": 1}')
.../tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:33: DeprecationWarning: Please use assertEqual instead.
{expect: expect})
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:36: DeprecationWarning: Please use assertEqual instead.
{expect: expect})
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:45: DeprecationWarning: Please use assertEqual instead.
v1)
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:48: DeprecationWarning: Please use assertEqual instead.
{'': v1})
/tmp/simplejson-3.0.4/simplejson/tests/test_dump.py:51: DeprecationWarning: Please use assertEqual instead.
[v1])
../tmp/simplejson-3.0.4/simplejson/tests/test_encode_basestring_ascii.py:42: DeprecationWarning: Please use assertEqual instead.
'%r != %r for %s(%r)' % (result, expect, fname, input_string))
...../tmp/simplejson-3.0.4/simplejson/tests/test_errors.py:20: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(err.lineno, 2)
/tmp/simplejson-3.0.4/simplejson/tests/test_errors.py:21: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(err.colno, 1)
/tmp/simplejson-3.0.4/simplejson/tests/test_errors.py:22: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(err.endlineno, 3)
/tmp/simplejson-3.0.4/simplejson/tests/test_errors.py:23: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(err.endcolno, 2)
./tmp/simplejson-3.0.4/simplejson/tests/test_errors.py:34: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(err.lineno, 1)
/tmp/simplejson-3.0.4/simplejson/tests/test_errors.py:35: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(err.colno, 9)
../tmp/simplejson-3.0.4/simplejson/tests/test_fail.py:112: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(e.pos, 1)
/tmp/simplejson-3.0.4/simplejson/tests/test_fail.py:113: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(e.lineno, 1)
/tmp/simplejson-3.0.4/simplejson/tests/test_fail.py:114: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(e.colno, 1)
../tmp/simplejson-3.0.4/simplejson/tests/test_float.py:10: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads(json.dumps(inf)), inf)
/tmp/simplejson-3.0.4/simplejson/tests/test_float.py:13: DeprecationWarning: Please use assertTrue instead.
self.assert_((0 + nan) != nan)
./tmp/simplejson-3.0.4/simplejson/tests/test_float.py:18: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(float(json.dumps(num)), num)
/tmp/simplejson-3.0.4/simplejson/tests/test_float.py:19: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads(json.dumps(num)), num)
/tmp/simplejson-3.0.4/simplejson/tests/test_float.py:20: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads(text_type(json.dumps(num))), num)
./tmp/simplejson-3.0.4/simplejson/tests/test_float.py:24: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(num), str(num))
/tmp/simplejson-3.0.4/simplejson/tests/test_float.py:25: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(int(json.dumps(num)), num)
/tmp/simplejson-3.0.4/simplejson/tests/test_float.py:26: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads(json.dumps(num)), num)
/tmp/simplejson-3.0.4/simplejson/tests/test_float.py:27: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads(text_type(json.dumps(num))), num)
./tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:45: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(h1, h)
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:46: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(h2, h)
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:47: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(h3, h)
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:48: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(h4, h)
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:49: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(d3, expect.replace('\t', ' '))
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:50: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(d4, expect.replace('\t', ' '))
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:54: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(d2, expect)
./tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:60: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(d1, expected)
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:64: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(sio.getvalue(), expected)
./tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:78: DeprecationWarning: Please use assertEqual instead.
json.dumps(lst, indent=0, separators=(', ', ': ')))
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:82: DeprecationWarning: Please use assertEqual instead.
json.dumps(lst, indent=0, separators=(',', ': ')))
/tmp/simplejson-3.0.4/simplejson/tests/test_indent.py:86: DeprecationWarning: Please use assertEqual instead.
json.dumps(lst, indent=0))
./tmp/simplejson-3.0.4/simplejson/tests/test_pass1.py:70: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(res, json.loads(out))
./tmp/simplejson-3.0.4/simplejson/tests/test_pass2.py:14: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(res, json.loads(out))
./tmp/simplejson-3.0.4/simplejson/tests/test_pass3.py:20: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(res, json.loads(out))
./tmp/simplejson-3.0.4/simplejson/tests/test_recursion.py:60: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(enc.encode(JSONTestObject), '"JSONTestObject"')
....../tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:28: DeprecationWarning: Please use assertEqual instead.
(u'z\U0001d120x', 16))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:37: DeprecationWarning: Please use assertEqual instead.
(u'z\U0001d120x', 5))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:41: DeprecationWarning: Please use assertEqual instead.
(u'{', 8))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:45: DeprecationWarning: Please use assertEqual instead.
(u'A JSON payload should be an object or array, not a string.', 60))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:49: DeprecationWarning: Please use assertEqual instead.
(u'Unclosed array', 17))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:53: DeprecationWarning: Please use assertEqual instead.
(u'extra comma', 14))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:57: DeprecationWarning: Please use assertEqual instead.
(u'double extra comma', 21))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:61: DeprecationWarning: Please use assertEqual instead.
(u'Comma after the close', 24))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:65: DeprecationWarning: Please use assertEqual instead.
(u'Extra close', 14))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:69: DeprecationWarning: Please use assertEqual instead.
(u'Extra comma', 14))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:73: DeprecationWarning: Please use assertEqual instead.
(u'Extra value after close', 26))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:77: DeprecationWarning: Please use assertEqual instead.
(u'Illegal expression', 21))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:81: DeprecationWarning: Please use assertEqual instead.
(u'Illegal invocation', 21))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:85: DeprecationWarning: Please use assertEqual instead.
(u'Numbers cannot have leading zeroes', 37))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:89: DeprecationWarning: Please use assertEqual instead.
(u'Numbers cannot be hex', 24))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:93: DeprecationWarning: Please use assertEqual instead.
(u'Too deep', 30))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:97: DeprecationWarning: Please use assertEqual instead.
(u'Missing colon', 16))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:101: DeprecationWarning: Please use assertEqual instead.
(u'Double colon', 15))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:105: DeprecationWarning: Please use assertEqual instead.
(u'Comma instead of colon', 25))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:109: DeprecationWarning: Please use assertEqual instead.
(u'Colon instead of comma', 25))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:113: DeprecationWarning: Please use assertEqual instead.
(u'Bad value', 12))
/tmp/simplejson-3.0.4/simplejson/tests/test_scanstring.py:118: DeprecationWarning: Please use assertEqual instead.
(c, 2))
./tmp/simplejson-3.0.4/simplejson/tests/test_separators.py:40: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(h1, h)
/tmp/simplejson-3.0.4/simplejson/tests/test_separators.py:41: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(h2, h)
/tmp/simplejson-3.0.4/simplejson/tests/test_separators.py:42: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(d2, expect)
.../tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:50: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads('"' + u + '"'), u)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:51: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads('"z\\ud834\\udd20x"'), u)
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:45: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(u), '"\\ud834\\udd20"')
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:46: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(u, ensure_ascii=False), u'"\U0001d120"')
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:78: DeprecationWarning: Please use assertEqual instead.
{'a': u'\xe9'})
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:14: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(ju, js)
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:21: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(ju, js)
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:26: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(j, '"\\u03b1\\u03a9"')
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:31: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(j, '["\\u03b1\\u03a9"]')
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:36: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(j, u'"' + u + u'"')
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:41: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(j, u'["' + u + u'"]')
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:98: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(doc1), doc_ascii)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:99: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(doc2), doc_ascii)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:100: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(doc1, ensure_ascii=False), doc_unicode)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:101: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(doc2, ensure_ascii=False), doc_unicode)
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:87: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.dumps([], ensure_ascii=False)), text_type)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:88: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.dumps(0, ensure_ascii=False)), text_type)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:89: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.dumps({}, ensure_ascii=False)), text_type)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:90: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.dumps("", ensure_ascii=False)), text_type)
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:108: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(s1), expect)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:109: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(s2), expect)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:110: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(s1, ensure_ascii=False), expect)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:111: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.dumps(s2, ensure_ascii=False), expect)
.../tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:58: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(json.loads(s), u)
./tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:81: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.loads(u'""')), text_type)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:82: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.loads(u'"a"')), text_type)
/tmp/simplejson-3.0.4/simplejson/tests/test_unicode.py:83: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(type(json.loads(u'["a"]')[0]), text_type)
./tmp/simplejson-3.0.4/simplejson/tests/test_decimal.py:20: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(res, json.load(sio, **kw))
/tmp/simplejson-3.0.4/simplejson/tests/test_decimal.py:29: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(self.loads(s, parse_float=Decimal), Decimal(s))
../tmp/simplejson-3.0.4/simplejson/tests/test_decimal.py:14: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(res, sio.getvalue())
/tmp/simplejson-3.0.4/simplejson/tests/test_decimal.py:25: DeprecationWarning: Please use assertEqual instead.
self.assertEquals(self.dumps(d, use_decimal=True), str(d))
./tmp/simplejson-3.0.4/simplejson/tests/test_decimal.py:47: DeprecationWarning: Please use assertEqual instead.
v)
../tmp/simplejson-3.0.4/simplejson/tests/test_decimal.py:37: DeprecationWarning: Please use assertEqual instead.
{str(d): d})
.............s
----------------------------------------------------------------------
Ran 92 tests in 3.973s
OK (skipped=1)