aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-09 11:24:13 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-09 11:24:13 -0700
commitad11863b6a26c4da4e500da165ea35e5a52c95b2 (patch)
tree0a7bbe1e2332383f6c9c91b4fcfa2f78f8f89d70 /tests
parent3aca411f788bf6db0e4eebacf4b8cf40076e11f6 (diff)
remove some warnings on moving files to directories
Diffstat (limited to 'tests')
-rw-r--r--tests/test_other.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index 137a83b1..349a16b4 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2291,15 +2291,17 @@ mergeInto(LibraryManager.library, {
self.clear()
os.mkdir(outdir)
- process = Popen([PYTHON, EMCC, '-c', path_from_root('tests', 'hello_world.c'), '-o', outdir])
- process.communicate()
- assert(os.path.isfile(outdir + 'hello_world.o'))
+ process = Popen([PYTHON, EMCC, '-c', path_from_root('tests', 'hello_world.c'), '-o', outdir], stderr=PIPE)
+ out, err = process.communicate()
+ assert not err, err
+ assert os.path.isfile(outdir + 'hello_world.o')
self.clear()
os.mkdir(outdir)
- process = Popen([PYTHON, EMCC, '-c', path_from_root('tests', 'hello_world.c'), '-o', outdir, '--default-obj-ext', 'obj'])
- process.communicate()
- assert(os.path.isfile(outdir + 'hello_world.obj'))
+ process = Popen([PYTHON, EMCC, '-c', path_from_root('tests', 'hello_world.c'), '-o', outdir, '--default-obj-ext', 'obj'], stderr=PIPE)
+ out, err = process.communicate()
+ assert not err, err
+ assert os.path.isfile(outdir + 'hello_world.obj')
def test_doublestart_bug(self):
open('code.cpp', 'w').write(r'''