Commits

Antonio Cuni committed 8868ac4

add an applevel py3k_skip, and py3k_skip some multidict tests

Comments (0)

Files changed (3)

                   space.wrap(appsupport.app_raises))
     space.setitem(space.builtin.w_dict, space.wrap('skip'),
                   space.wrap(appsupport.app_skip))
+    space.setitem(space.builtin.w_dict, space.wrap('py3k_skip'),
+                  space.wrap(appsupport.app_py3k_skip))
     space.raises_w = appsupport.raises_w.__get__(space)
     space.eq_w = appsupport.eq_w.__get__(space)
     return space

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
 
         w_d = self.space.newdict()
         assert self.space.listview_str(w_d) == ["a", "b"]
 
     def test_listview_int_dict(self):
+        py.test.py3k_skip("IntDictStrategy not supported yet")
         w = self.space.wrap
         w_d = self.space.newdict()
         w_d.initialize_content([(w(1), w("a")), (w(2), w("b"))])
         return r[r.find("(") + 1: r.find(")")]
 
     def test_empty_to_string(self):
+        py3k_skip("StringDictStrategy not supported yet")
         d = {}
         assert "EmptyDictStrategy" in self.get_strategy(d)
         d["a"] = 1

pypy/tool/pytest/appsupport.py

 
 app_skip = gateway.interp2app_temp(pypyskip)
 
+def py3k_pypyskip(space, w_message): 
+    """skip a test at app-level. """ 
+    msg = space.unwrap(w_message) 
+    py.test.skip('[py3k] %s' % msg)
+
+app_py3k_skip = gateway.interp2app_temp(py3k_pypyskip)
+
 def raises_w(space, w_ExpectedException, *args, **kwds):
     try:
         excinfo = py.test.raises(OperationError, *args, **kwds)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.