[pypy-svn] r8284 - pypy/trunk/src/pypy/tool
hpk at codespeak.net
hpk at codespeak.net
Fri Jan 14 23:23:45 CET 2005
Author: hpk
Date: Fri Jan 14 23:23:45 2005
New Revision: 8284
Modified:
pypy/trunk/src/pypy/tool/example_pytest.py
Log:
added a few example for failing tests within pypy
Modified: pypy/trunk/src/pypy/tool/example_pytest.py
==============================================================================
--- pypy/trunk/src/pypy/tool/example_pytest.py (original)
+++ pypy/trunk/src/pypy/tool/example_pytest.py Fri Jan 14 23:23:45 2005
@@ -12,3 +12,15 @@
def test_interp_method(self):
assert self.space.is_true(self.space.w_False)
+def app_test_raises_something():
+ int("hallo")
+
+def app_test_raises_wrong1():
+ raises(SyntaxError, 'int("hello")')
+
+def app_test_raises_wrong2():
+ raises(SyntaxError, int, "hello")
+
+def app_test_raises_doesnt():
+ raises(ValueError, int, 3)
+
More information about the Pypy-commit
mailing list