[Minor] Improve the code style in TokenizerManager (#767)
This commit is contained in:
1 parent
3fdab91912
commit
0736b27020
3 files changed
+60
-37
No files matched your search
@@ -118,7 +118,11 @@ def test_decode_json_regex():
|
||||
s += "}"
|
||||
|
||||
ret = decode_json.run()
|
||||
js_obj = json.loads(ret["json_output"])
|
||||
try:
|
||||
js_obj = json.loads(ret["json_output"])
|
||||
except json.decoder.JSONDecodeError:
|
||||
print(ret["json_output"])
|
||||
raise
|
||||
assert isinstance(js_obj["name"], str)
|
||||
assert isinstance(js_obj["population"], int)
|
||||
|
||||
|
||||
Reference in new issue
Block a user