Author: Ronan Lamy <[email protected]>
Branch: rpath-enforceargs
Changeset: r72089:79e019d50044
Date: 2014-06-17 19:19 +0100
http://bitbucket.org/pypy/pypy/changeset/79e019d50044/

Log:    fix test: @enforceargs(str) does not accept None any more

diff --git a/rpython/rlib/test/test_objectmodel.py 
b/rpython/rlib/test/test_objectmodel.py
--- a/rpython/rlib/test/test_objectmodel.py
+++ b/rpython/rlib/test/test_objectmodel.py
@@ -454,7 +454,8 @@
     @enforceargs(str, unicode)
     def f(a, b):
         return a, b
-    assert f(None, None) == (None, None)
+    with py.test.raises(TypeError):
+        f(None, None)
 
 def test_enforceargs_complex_types():
     @enforceargs([int], {str: int})
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to