Changeset: 0512e8290f16 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0512e8290f16
Modified Files:
        testing/Mfilter.py
        testing/Mtest.py.in
Branch: Apr2019
Log Message:

When using Python 3, replace incorrect utf-8 sequences in test output.


diffs (24 lines):

diff --git a/testing/Mfilter.py b/testing/Mfilter.py
--- a/testing/Mfilter.py
+++ b/testing/Mfilter.py
@@ -34,7 +34,7 @@ def wlen(str) :
 
 def openutf8(file, mode='r'):
     try:
-        f = open(file, mode, encoding='utf-8') # Python 3
+        f = open(file, mode, encoding='utf-8', errors='replace') # Python 3
     except TypeError:
         f = open(file, mode)    # Python 2
     return f
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -719,7 +719,7 @@ elif sys.version_info[0] == 3:
 
 def openutf8(file, mode='r'):
     try:
-        f = open(file, mode, encoding='utf-8') # Python 3
+        f = open(file, mode, encoding='utf-8', errors='replace') # Python 3
     except TypeError:
         f = open(file, mode)    # Python 2
     return f
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to