Commits

Antonio Cuni committed aee08b7

unskip and fix this test

Comments (0)

Files changed (2)

pypy/objspace/std/dictmultiobject.py

 
     def is_correct_type(self, w_obj):
         space = self.space
-        return space.is_w(space.type(w_obj), space.w_text)
+        return space.is_w(space.type(w_obj), space.w_str)
 
     def get_empty_storage(self):
         res = {}

pypy/objspace/std/test/test_dictmultiobject.py

         assert space.eq_w(w_d.getitem_str("b"), space.w_None)
 
     def test_listview_str_dict(self):
-        py.test.py3k_skip("StringDictStrategy not supported yet")
         w = self.space.wrap
+        wb = self.space.wrapbytes
         w_d = self.space.newdict()
-        w_d.initialize_content([(w("a"), w(1)), (w("b"), w(2))])
+        w_d.initialize_content([(wb("a"), w(1)), (wb("b"), w(2))])
         assert self.space.listview_str(w_d) == ["a", "b"]
 
     def test_listview_unicode_dict(self):
         setattr(a, s, 123)
         assert holder.seen is s
 
+
 class AppTestDictViews:
     def test_dictview(self):
         d = {1: 2, 3: 4}