Author: Lukas Diekmann <[email protected]>
Branch: set-strategies
Changeset: r51231:aae0411e2217
Date: 2012-01-11 16:07 +0100
http://bitbucket.org/pypy/pypy/changeset/aae0411e2217/
Log: fixed test: show that listview_str returns None for other objects
diff --git a/pypy/objspace/std/test/test_liststrategies.py
b/pypy/objspace/std/test/test_liststrategies.py
--- a/pypy/objspace/std/test/test_liststrategies.py
+++ b/pypy/objspace/std/test/test_liststrategies.py
@@ -420,7 +420,7 @@
def test_listview_str(self):
space = self.space
- assert space.listview_str(space.wrap("a")) == ["a"]
+ assert space.listview_str(space.wrap(1)) == None
w_l = self.space.newlist([self.space.wrap('a'), self.space.wrap('b')])
assert space.listview_str(w_l) == ["a", "b"]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit