Changeset 995 for tester/comparison.py


Ignore:
Timestamp:
07/09/20 16:35:19 (4 years ago)
Author:
Maciej Komosinski
Message:

Added support for utf-8 in tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/comparison.py

    r994 r995  
    2424
    2525                try:
    26                         fin = open(os.path.join(globals.THISDIR, name))  # first we look for the file with the specialized name (platform-dependent)...
     26                        fin = open(os.path.join(globals.THISDIR, name), encoding='utf8')  # first we look for the file with the specialized name (platform-dependent)...
    2727                except IOError as e1:
    2828                        try:
    29                                 fin = open(os.path.join(globals.THISDIR, file_name + ".goal"))  # ...if there is no such file, we try to find the default file
     29                                fin = open(os.path.join(globals.THISDIR, file_name + ".goal"), encoding='utf8')  # ...if there is no such file, we try to find the default file
    3030                        except IOError as e2:
    3131                                print()
Note: See TracChangeset for help on using the changeset viewer.