mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 21:54:54 +08:00
Usability for diff parser fuzzing
This commit is contained in:
@@ -14,6 +14,7 @@ Options:
|
|||||||
--ipdb Launch ipdb when error is raised
|
--ipdb Launch ipdb when error is raised
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
@@ -71,6 +72,7 @@ def run(path, maxtries, debugger, change_count):
|
|||||||
grammar.parse(code2, diff_cache=True)
|
grammar.parse(code2, diff_cache=True)
|
||||||
print('.', end='')
|
print('.', end='')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
print()
|
||||||
except Exception:
|
except Exception:
|
||||||
print("Issue in file: %s" % path)
|
print("Issue in file: %s" % path)
|
||||||
if debugger:
|
if debugger:
|
||||||
|
|||||||
Reference in New Issue
Block a user