764e65fb11
PEP479 (see https://www.python.org/dev/peps/pep-0479/) prohibited raising StopIteration from within a generator (it is turned into a RuntimeError). This behaviour was introduced in Python 3.5 and in 3.7 was made compulsory. Until uPy implements PEP479, this patch adds .py.exp files for the relevant tests so they can be run under Python 3.7.
21 lines
254 B
Plaintext
21 lines
254 B
Plaintext
-1
|
|
1
|
|
StopIteration
|
|
-1
|
|
1
|
|
2
|
|
leaf caught GeneratorExit and swallowed it
|
|
delegating caught GeneratorExit
|
|
StopIteration
|
|
-1
|
|
1
|
|
2
|
|
leaf caught GeneratorExit and raised StopIteration instead
|
|
delegating caught GeneratorExit
|
|
StopIteration
|
|
123
|
|
RuntimeError
|
|
0
|
|
1
|
|
close
|