Skip to content

Commit

Permalink
Fix test_demangle_stacks_symbol_map on Windows (os.linesep should be …
Browse files Browse the repository at this point in the history
…used only on files opened in binary mode on Windows, but if a file is opened in text mode, it will have \n line endings in memory as usual
  • Loading branch information
juj committed Dec 15, 2016
1 parent e101571 commit f00b433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6118,7 +6118,7 @@ def test_demangle_stacks_symbol_map(self):
self.emcc_args += ['--emit-symbol-map']
self.do_run(open(path_from_root('tests', 'core', 'test_demangle_stacks.c')).read(), 'abort')
# make sure the shortened name is the right one
symbols = open('src.cpp.o.js.symbols').read().split(os.linesep)
symbols = open('src.cpp.o.js.symbols').read().split('\n')
for line in symbols:
if ':' not in line: continue
short, full = line.split(':')
Expand Down

0 comments on commit f00b433

Please sign in to comment.