Skip to content

Commit 46cebf6

Browse files
committed
Tweak two tests that somehow got dropped in the merges.
1 parent 327c094 commit 46cebf6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/lib_test.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_arrays(self):
4343

4444
try:
4545
json5.loads('[ ,]')
46-
self.fail()
46+
self.fail() # pragma: no cover
4747
except ValueError as e:
4848
self.assertIn('Unexpected "," at column 3', str(e))
4949

@@ -586,13 +586,7 @@ def test_trailing_commas(self):
586586
)
587587

588588
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
589+
self.check(chr(0x10000), '"\\ud800\\udc00"')
596590

597591
def test_empty_key(self):
598592
self.assertEqual(json5.dumps({'': 'value'}), '{"": "value"}')

0 commit comments

Comments
 (0)