mirror of https://github.com/tc39/test262.git
Read existing generated files with correct encoding
Otherwise we cannot parse the comments
This commit is contained in:
parent
dd848d4c9d
commit
271dad7c0a
|
@ -19,7 +19,7 @@ class Test:
|
||||||
|
|
||||||
def load(self, prefix = None):
|
def load(self, prefix = None):
|
||||||
location = os.path.join(prefix or '', self.file_name)
|
location = os.path.join(prefix or '', self.file_name)
|
||||||
with open(location, 'rb') as handle:
|
with open(location, 'r') as handle:
|
||||||
self.source = handle.read()
|
self.source = handle.read()
|
||||||
self._parse()
|
self._parse()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue