Changeset 49a980b for tests/pybin/tools.py
- Timestamp:
- Aug 31, 2020, 5:23:49 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d3aa64f
- Parents:
- 191a190 (diff), 942453a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/tools.py
r191a190 r49a980b 238 238 # helper function to check if a files contains only a specific string 239 239 def file_contains_only(file, text) : 240 with open(file ) as f:240 with open(file, encoding="latin-1") as f: # use latin-1 so all chars mean something. 241 241 ff = f.read().strip() 242 242 result = ff == text.strip()
Note: See TracChangeset
for help on using the changeset viewer.