diff --git a/tests/lib_test.py b/tests/lib_test.py index 013f428..1246ae5 100644 --- a/tests/lib_test.py +++ b/tests/lib_test.py @@ -236,14 +236,14 @@ def test_sample_file(self): def test_strict(self): # From [GitHub issue #82](https://github.com/dpranke/pyjson5/issues/82) - foo=( - '{\n' - '"key": "value\n' - 'over two lines",\n' - '}' - ) - self.check_fail(foo, ':2 Unexpected "\n" at column 14') - self.check(foo, {'key': 'value\nover two lines'}, strict=False) + d = '{\n"key": "value\nover two lines",\n}' + self.check_fail(d, ':2 Unexpected "\n" at column 14') + self.check(d, {'key': 'value\nover two lines'}, strict=False) + + # Test w/ single quotes to get coverage. + d = "{\n'key': 'value\nover two lines',\n}" + self.check_fail(d, ':2 Unexpected "\n" at column 14') + self.check(d, {'key': 'value\nover two lines'}, strict=False) def test_strings(self): self.check('"foo"', 'foo')