[issue30877] possibe typo in json/scanner.py

2017-07-08 Thread c-fos
c-fos added the comment: Test independent from _json library: import unittest from json.decoder import JSONDecoder from json.scanner import py_make_scanner class Memo_Test(unittest.TestCase): def test_for_empty_memo(self): json_str = '{"a": 1}' d

[issue30877] possibe typo in json/scanner.py

2017-07-08 Thread c-fos
c-fos added the comment: The possible test: import unittest from json.decoder import JSONDecoder class Memo_Test(unittest.TestCase): def test_for_empty_memo(self): json_str = '{"a": 1}' decoder = JSONDecoder() decoder.decode(json_str)