diff --git a/test cases/common/185 escape and unicode/file.py b/test cases/common/185 escape and unicode/file.py index af67a0950..40fa7ca48 100644 --- a/test cases/common/185 escape and unicode/file.py +++ b/test cases/common/185 escape and unicode/file.py @@ -6,5 +6,5 @@ import os with open(sys.argv[1]) as fh: content = fh.read().replace("{NAME}", sys.argv[2]) -with open(os.path.join(sys.argv[3]), 'w') as fh: +with open(os.path.join(sys.argv[3]), 'w', errors='replace') as fh: fh.write(content)