Пример #1
0
 def test_iter_except(self):
     d = ["a", "b", "c"]
     it = iters.iter_except(d.pop, IndexError)
     self.assertEqual(["c", "b", "a"], list(it))
Пример #2
0
 def test_iter_except(self):
     d = ["a", "b", "c"]
     it = iters.iter_except(d.pop, IndexError)
     self.assertEqual(["c", "b", "a"], list(it))