Commits

Amaury Forgeot d'Arc committed bd24b42 Draft

Fix implementation details in test_list.

  • Participants
  • Parent commits 31bd302
  • Branches py3k

Comments (0)

Files changed (1)

lib-python/3.2/test/list_tests.py

         self.assertEqual(repr(a2), "[0, 1, 2, [...], 3]")
 
         l0 = []
-        for i in range(sys.getrecursionlimit() + 100):
+        for i in range(sys.getrecursionlimit() + 10000):
             l0 = [l0]
         self.assertRaises(RuntimeError, repr, l0)
 
         u += "eggs"
         self.assertEqual(u, self.type2test("spameggs"))
 
-        self.assertRaises(TypeError, u.__iadd__, None)
+        self.assertRaises(TypeError, "u += None")
 
     def test_imul(self):
         u = self.type2test([0, 1])