Merge pull request #18817 from alalek:fixup_objc_tests

pull/18688/head
Alexander Alekhin 4 years ago
commit 786cecfe66
  1. 2
      modules/objc/generator/gen_objc.py

@ -1371,6 +1371,8 @@ typedef NS_ENUM(int, {1}) {{
readme_out.write(readme_body)
if framework_name != "OpenCV":
for dirname, dirs, files in os.walk(os.path.join(testdir, "test")):
if dirname.endswith('/resources'):
continue # don't touch resource binary files
for filename in files:
filepath = os.path.join(dirname, filename)
with io.open(filepath, encoding="utf-8", errors="ignore") as file:

Loading…
Cancel
Save