Ignore some slow files for the fuzzer

This commit is contained in:
Dave Halter
2020-04-12 01:14:24 +02:00
parent 83cb71f7a1
commit b5f58ac33c

View File

@@ -50,6 +50,11 @@ def find_python_files_in_tree(file_path):
yield file_path
return
for root, dirnames, filenames in os.walk(file_path):
if 'chardet' in root:
# Stuff like chardet/langcyrillicmodel.py is just very slow to
# parse and machine generated, so ignore those.
continue
for name in filenames:
if name.endswith('.py'):
yield os.path.join(root, name)