We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b104dda commit bfffc3dCopy full SHA for bfffc3d
1 file changed
tests/test_ultratb.py
@@ -445,7 +445,10 @@ class ExceptionMessagePreferenceTest(unittest.TestCase):
445
446
def test_jsondecodeerror_message(self):
447
cell = "import json;json.loads('{\"a\": }')"
448
- expected = "JSONDecodeError: Expecting value: line 1 column 7 (char 6)"
+ if platform.python_implementation() == "PyPy":
449
+ expected = "JSONDecodeError: Unexpected '}': line 1 column 7 (char 6)"
450
+ else:
451
+ expected = "JSONDecodeError: Expecting value: line 1 column 7 (char 6)"
452
ip.run_cell("%xmode plain")
453
with tt.AssertPrints(expected):
454
ip.run_cell(cell)
0 commit comments