[pypy-commit] pypy py3k: we call unicode_w now
antocuni
noreply at buildbot.pypy.org
Thu Aug 2 19:10:43 CEST 2012
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56540:b41975a0d8f0
Date: 2012-08-02 18:42 +0200
http://bitbucket.org/pypy/pypy/changeset/b41975a0d8f0/
Log: we call unicode_w now
diff --git a/pypy/interpreter/test/test_argument.py b/pypy/interpreter/test/test_argument.py
--- a/pypy/interpreter/test/test_argument.py
+++ b/pypy/interpreter/test/test_argument.py
@@ -318,13 +318,13 @@
def test_unwrap_error(self):
space = DummySpace()
valuedummy = object()
- def str_w(w):
+ def unicode_w(w):
if w is None:
raise OperationError(TypeError, None)
if w is valuedummy:
raise OperationError(ValueError, None)
return str(w)
- space.str_w = str_w
+ space.unicode_w = unicode_w
excinfo = py.test.raises(OperationError, Arguments, space, [],
["a"], [1], w_starstararg={None: 1})
assert excinfo.value.w_type is TypeError
More information about the pypy-commit
mailing list