[pypy-svn] r65939 - pypy/branch/pyjitpl5/pypy/jit/tl/spli/test
benjamin at codespeak.net
benjamin at codespeak.net
Wed Jun 24 22:38:47 CEST 2009
Author: benjamin
Date: Wed Jun 24 22:38:47 2009
New Revision: 65939
Modified:
pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_interpreter.py
Log:
invalid op tests
Modified: pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_interpreter.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_interpreter.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/spli/test/test_interpreter.py Wed Jun 24 22:38:47 2009
@@ -1,3 +1,4 @@
+import py
from pypy.jit.tl.spli import interpreter, objects
class TestSPLIInterpreter:
@@ -46,4 +47,11 @@
v = self.eval(f)
assert v.value == 100
-
+
+ def test_invalid_adds(self):
+ def f():
+ "3" + 3
+ py.test.raises(objects.W_TypeError, self.eval, f)
+ def f():
+ 3 + "3"
+ py.test.raises(objects.W_TypeError, self.eval, f)
More information about the Pypy-commit
mailing list