[pypy-svn] r59621 - pypy/build/testrunner/test
pedronis at codespeak.net
pedronis at codespeak.net
Sat Nov 1 13:40:39 CET 2008
Author: pedronis
Date: Sat Nov 1 13:40:36 2008
New Revision: 59621
Modified:
pypy/build/testrunner/test/test_runner.py
Log:
more run tests
Modified: pypy/build/testrunner/test/test_runner.py
==============================================================================
--- pypy/build/testrunner/test/test_runner.py (original)
+++ pypy/build/testrunner/test/test_runner.py Sat Nov 1 13:40:36 2008
@@ -18,6 +18,16 @@
out = py.path.local(self.fn).read('r')
assert out == "42\n"
+ def test_error(self):
+ res = runner.run([sys.executable, "-c", "import sys; sys.exit(3)"], '.', py.path.local(self.fn))
+ assert res == 3
+
+ def test_signal(self):
+ if sys.platform == 'win32':
+ py.test.skip("no death by signal on windows")
+ res = runner.run([sys.executable, "-c", "import os; os.kill(os.getpid(), 9)"], '.', py.path.local(self.fn))
+ assert res == -9
+
class TestExecuteTest(object):
More information about the Pypy-commit
mailing list