Add StopIteration tests.
Simplify test_main().
1 file changed