Mark unsupported tests

This commit is contained in:
Aviv Palivoda committed 2020-02-22 14:25:25 +02:00
1 parent 1129c9d59a
commit 1d29858c04
1 file changed
+11
+11
View File
@@ -341,6 +341,7 @@ class ClassTests(unittest.TestCase):
slice(None, 24, None),
24, 100)))])
@unittest.skip("TODO: RUSTPYTHON")
def testUnaryOps(self):
testme = AllTests()
@@ -445,6 +446,7 @@ class ClassTests(unittest.TestCase):
del testme.cardinal
self.assertCallStack([('__delattr__', (testme, "cardinal"))])
@unittest.skip("TODO: RUSTPYTHON")
def testDel(self):
x = []
@@ -457,6 +459,7 @@ class ClassTests(unittest.TestCase):
gc.collect()
self.assertEqual(["crab people, crab people"], x)
@unittest.skip("TODO: RUSTPYTHON")
def testBadTypeReturned(self):
# return values of some method are type-checked
class BadTypeClass:
@@ -475,6 +478,8 @@ class ClassTests(unittest.TestCase):
for f in [float, complex, str, repr, bytes, bin, oct, hex, bool, index]:
self.assertRaises(TypeError, f, BadTypeClass())
# TODO: RUSTPYTHON
@unittest.expectedFailure
def testHashStuff(self):
# Test correct errors from hash() on objects with comparisons but
# no __hash__
@@ -490,6 +495,7 @@ class ClassTests(unittest.TestCase):
self.assertRaises(TypeError, hash, C2())
@unittest.skip("TODO: RUSTPYTHON")
def testSFBug532646(self):
# Test for SF bug 532646
@@ -505,6 +511,7 @@ class ClassTests(unittest.TestCase):
else:
self.fail("Failed to raise RecursionError")
@unittest.skip("TODO: RUSTPYTHON")
def testForExceptionsRaisedInInstanceGetattr2(self):
# Tests for exceptions raised in instance_getattr2().
@@ -544,6 +551,8 @@ class ClassTests(unittest.TestCase):
with self.assertRaises(TypeError):
a >= b
# TODO: RUSTPYTHON
@unittest.expectedFailure
def testHashComparisonOfMethods(self):
# Test comparison and hash of methods
class A:
@@ -611,6 +620,8 @@ class ClassTests(unittest.TestCase):
with self.assertRaises(TypeError):
type.__setattr__(A, b'x', None)
# TODO: RUSTPYTHON
@unittest.expectedFailure
def testConstructorErrorMessages(self):
# bpo-31506: Improves the error message logic for object_new & object_init