diff -r c59d81b802f8 Lib/test/test_pdb.py --- a/Lib/test/test_pdb.py Tue Mar 31 16:35:35 2015 +0200 +++ b/Lib/test/test_pdb.py Tue Mar 31 19:12:12 2015 +0300 @@ -677,10 +677,12 @@ def test_pdb_next_command_for_generator( ... import pdb; pdb.Pdb(nosigint=True).set_trace() ... it = test_gen() ... try: - ... assert next(it) == 0 + ... if next(it) != 0: + ... raise AssertionError ... next(it) ... except StopIteration as ex: - ... assert ex.value == 1 + ... if ex.value != 1: + ... raise AssertionError ... print("finished") >>> with PdbTestInput(['step', @@ -699,7 +701,7 @@ def test_pdb_next_command_for_generator( -> try: (Pdb) step > (5)test_function() - -> assert next(it) == 0 + -> if next(it) != 0: (Pdb) step --Call-- > (1)test_gen() @@ -716,7 +718,7 @@ def test_pdb_next_command_for_generator( -> return 1 (Pdb) step StopIteration: 1 - > (6)test_function() + > (7)test_function() -> next(it) (Pdb) continue finished @@ -735,10 +737,12 @@ def test_pdb_return_command_for_generato ... import pdb; pdb.Pdb(nosigint=True).set_trace() ... it = test_gen() ... try: - ... assert next(it) == 0 + ... if next(it) != 0: + ... raise AssertionError ... next(it) ... except StopIteration as ex: - ... assert ex.value == 1 + ... if ex.value != 1: + ... raise AssertionError ... print("finished") >>> with PdbTestInput(['step', @@ -756,21 +760,21 @@ def test_pdb_return_command_for_generato -> try: (Pdb) step > (5)test_function() - -> assert next(it) == 0 + -> if next(it) != 0: (Pdb) step --Call-- > (1)test_gen() -> def test_gen(): (Pdb) return StopIteration: 1 - > (6)test_function() + > (7)test_function() -> next(it) (Pdb) step - > (7)test_function() + > (8)test_function() -> except StopIteration as ex: (Pdb) step - > (8)test_function() - -> assert ex.value == 1 + > (9)test_function() + -> if ex.value != 1: (Pdb) continue finished """