diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2012-11-08 23:18:11 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2012-11-08 23:18:11 +0200 |
commit | 601689ef8cf260b9bcf966a0618cad068641cc8a (patch) | |
tree | 242369ecca94cb0e82781304cabaddcd8b865282 | |
parent | 599de9178e22b2433274faedcdf695622846e084 (diff) |
Fix a few other cases like previous commit where a possibly failing test could leak temporarily set environment variables.
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index 52d11ebf..3efb55b3 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10027,8 +10027,8 @@ fi assert not os.environ.get('EMCC_DEBUG'), 'do not run sanity checks in debug mode!' os.environ['EMCC_DEBUG'] = '1' output = self.check_working(EMCC) - self.assertContained(SANITY_MESSAGE, output) del os.environ['EMCC_DEBUG'] + self.assertContained(SANITY_MESSAGE, output) output = self.check_working(EMCC) self.assertNotContained(SANITY_MESSAGE, output) @@ -10065,8 +10065,8 @@ fi } ''') Popen(['python', EMCC, os.path.join(dirname, 'main.cpp'), '-o', os.path.join(dirname, 'a.out.js')]).communicate() - self.assertContained('hello from emcc with no config file', run_js(os.path.join(dirname, 'a.out.js'))) del os.environ['EM_CONFIG'] + self.assertContained('hello from emcc with no config file', run_js(os.path.join(dirname, 'a.out.js'))) shutil.rmtree(dirname) def test_emcc_caching(self): |