Author: Ronan Lamy <[email protected]>
Branch: 
Changeset: r80622:d140679b2a00
Date: 2015-11-10 20:46 +0000
http://bitbucket.org/pypy/pypy/changeset/d140679b2a00/

Log:    Make these failing tests actually run, so that they're not
        completely useless

diff --git a/rpython/annotator/test/test_annrpython.py 
b/rpython/annotator/test/test_annrpython.py
--- a/rpython/annotator/test/test_annrpython.py
+++ b/rpython/annotator/test/test_annrpython.py
@@ -793,8 +793,8 @@
         s = a.build_types(f, [B])
         assert s.classdef is a.bookkeeper.getuniqueclassdef(C)
 
+    @py.test.mark.xfail
     def test_union_type_some_pbc(self):
-        py.test.skip("is there a point? f() can return self.__class__ instead")
         class A(object):
             name = "A"
 
@@ -4414,8 +4414,9 @@
         with py.test.raises(UnionError) as exc:
             a.build_types(f2, [int])
 
+    @py.test.mark.xfail(reason="May produce garbage annotations instead of "
+            "raising AnnotatorError, depending on annotation order")
     def test_property_union_2(self):
-        py.test.xfail("FIX ME")
         class Base(object):
             pass
 
@@ -4443,8 +4444,9 @@
         with py.test.raises(AnnotatorError):
             a.build_types(f, [int])
 
+    @py.test.mark.xfail(reason="May produce garbage annotations instead of "
+            "raising AnnotatorError, depending on annotation order")
     def test_property_union_3(self):
-        py.test.xfail("FIX ME")
         class Base(object):
             pass
         class A(Base):
diff --git a/rpython/rtyper/test/test_generator.py 
b/rpython/rtyper/test/test_generator.py
--- a/rpython/rtyper/test/test_generator.py
+++ b/rpython/rtyper/test/test_generator.py
@@ -76,8 +76,8 @@
         res = self.interpret(f, [])
         assert res == 358
 
+    @py.test.mark.xfail
     def test_different_exception(self):
-        py.test.skip("generators broken")
         def h(c):
             if c == 8:
                 raise ValueError
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to