diff --git a/Lib/test/test_class.py b/Lib/test/test_class.py index 456f1be30..c3e512ade 100644 --- a/Lib/test/test_class.py +++ b/Lib/test/test_class.py @@ -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