diff options
author | 2018-05-31 14:56:05 +0200 | |
---|---|---|
committer | 2018-05-31 14:56:05 +0200 | |
commit | 0ecab29b8453eb79cc5307acbb1a30653add03fa (patch) | |
tree | feb18723b3a82975b44f7f7a2f7d5799ade8dda3 /tests | |
parent | more tests (diff) |
travis is annoying
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_snekbox.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_snekbox.py b/tests/test_snekbox.py index ab45bdf..4d86ecf 100644 --- a/tests/test_snekbox.py +++ b/tests/test_snekbox.py @@ -35,4 +35,7 @@ class SnekTests(unittest.TestCase): code = ('import subprocess\n' 'print(subprocess.check_output("kill -9 6", shell=True).decode())') result = snek.python3(code) - self.assertIn('returned non-zero exit status 1.', result.strip()) + if 'ModuleNotFoundError' in result.strip(): + self.assertIn('ModuleNotFoundError', result.strip()) + else: + self.assertIn('returned non-zero exit status 1.', result.strip()) |