Changeset 09bbe78 for tests/pybin


Ignore:
Timestamp:
Sep 15, 2020, 4:14:29 PM (14 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
0dbecad
Parents:
77a2994
Message:

Fix 2 cases where the test would open files as utf-8 and could fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    r77a2994 r09bbe78  
    120120                return None
    121121
    122         file = open(file, mode)
     122        file = open(file, mode, encoding="latin-1") # use latin-1 so all chars mean something.
    123123        exitstack.push(file)
    124124        return file
Note: See TracChangeset for help on using the changeset viewer.