We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 327c094 commit 46cebf6Copy full SHA for 46cebf6
tests/lib_test.py
@@ -43,7 +43,7 @@ def test_arrays(self):
43
44
try:
45
json5.loads('[ ,]')
46
- self.fail()
+ self.fail() # pragma: no cover
47
except ValueError as e:
48
self.assertIn('Unexpected "," at column 3', str(e))
49
@@ -586,13 +586,7 @@ def test_trailing_commas(self):
586
)
587
588
def test_supplemental_unicode(self):
589
- try:
590
- s = chr(0x10000)
591
- self.check(s, '"\\ud800\\udc00"')
592
- except ValueError:
593
- # Python2 doesn't support supplemental unicode planes, so
594
- # we can't test this there.
595
- pass
+ self.check(chr(0x10000), '"\\ud800\\udc00"')
596
597
def test_empty_key(self):
598
self.assertEqual(json5.dumps({'': 'value'}), '{"": "value"}')
0 commit comments