Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r58883:e6e80c03025a
Date: 2012-11-05 17:16 +0100
http://bitbucket.org/pypy/pypy/changeset/e6e80c03025a/
Log: py3k-ify this test
diff --git a/pypy/objspace/std/test/test_dictmultiobject.py
b/pypy/objspace/std/test/test_dictmultiobject.py
--- a/pypy/objspace/std/test/test_dictmultiobject.py
+++ b/pypy/objspace/std/test/test_dictmultiobject.py
@@ -966,12 +966,12 @@
def test_empty_to_unicode(self):
d = {}
assert "EmptyDictStrategy" in self.get_strategy(d)
- d[u"a"] = 1
+ d["a"] = 1
assert "UnicodeDictStrategy" in self.get_strategy(d)
- assert d[u"a"] == 1
assert d["a"] == 1
- assert d.keys() == [u"a"]
- assert type(d.keys()[0]) is unicode
+ #assert d[b"a"] == 1 # this works in py2, but not in py3
+ assert list(d.keys()) == ["a"]
+ assert type(list(d.keys())[0]) is str
def test_empty_to_int(self):
skip('IntDictStrategy is disabled for now, re-enable it!')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit