fix other.test_require
This commit is contained in:
Родитель
0931ac4f48
Коммит
6a6e2b15e7
|
@ -4386,6 +4386,6 @@ int main(void) {
|
||||||
def test_require(self):
|
def test_require(self):
|
||||||
inname = path_from_root('tests', 'hello_world.c')
|
inname = path_from_root('tests', 'hello_world.c')
|
||||||
Building.emcc(inname, output_filename='a.out.js')
|
Building.emcc(inname, output_filename='a.out.js')
|
||||||
output = Popen(NODE_JS + ['-e', 'require("./a.out.js")'], stdout=PIPE, stderr=PIPE).communicate()
|
output = Popen(listify(NODE_JS) + ['-e', 'require("./a.out.js")'], stdout=PIPE, stderr=PIPE).communicate()
|
||||||
assert output == ('hello, world!\n \n', ''), 'expected no output, got\n===\nSTDOUT\n%s\n===\nSTDERR\n%s\n===\n' % output
|
assert output == ('hello, world!\n \n', ''), 'expected no output, got\n===\nSTDOUT\n%s\n===\nSTDERR\n%s\n===\n' % output
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче