diff --git a/test/bytecode_3.1/07_forelselast.pyc b/test/bytecode_3.1/07_forelselast.pyc new file mode 100644 index 00000000..c107bef6 Binary files /dev/null and b/test/bytecode_3.1/07_forelselast.pyc differ diff --git a/test/bytecode_3.2/07_forelselast.pyc b/test/bytecode_3.2/07_forelselast.pyc new file mode 100644 index 00000000..aca68bf5 Binary files /dev/null and b/test/bytecode_3.2/07_forelselast.pyc differ diff --git a/test/bytecode_3.3/07_forelselast.pyc b/test/bytecode_3.3/07_forelselast.pyc new file mode 100644 index 00000000..1232419e Binary files /dev/null and b/test/bytecode_3.3/07_forelselast.pyc differ diff --git a/test/bytecode_3.4/07_forelselast.pyc b/test/bytecode_3.4/07_forelselast.pyc new file mode 100644 index 00000000..f3593c8d Binary files /dev/null and b/test/bytecode_3.4/07_forelselast.pyc differ diff --git a/test/bytecode_3.5/07_forelselast.pyc b/test/bytecode_3.5/07_forelselast.pyc new file mode 100644 index 00000000..f78ccdd9 Binary files /dev/null and b/test/bytecode_3.5/07_forelselast.pyc differ diff --git a/test/bytecode_3.6/07_forelselast.pyc b/test/bytecode_3.6/07_forelselast.pyc new file mode 100644 index 00000000..a3a0a056 Binary files /dev/null and b/test/bytecode_3.6/07_forelselast.pyc differ diff --git a/test/simple_source/bug31/07_forelselast.py b/test/simple_source/bug31/07_forelselast.py new file mode 100644 index 00000000..64145196 --- /dev/null +++ b/test/simple_source/bug31/07_forelselast.py @@ -0,0 +1,22 @@ +# From python 3.4 asyncio/base_events.py +# Needs a forelselast grammar rule + +def create_connection(self, infos, f2, laddr_infos, protocol): + for family in infos: + try: + if f2: + for laddr in laddr_infos: + try: + break + except OSError: + protocol = 'foo' + else: + continue + except OSError: + protocol = 'bar' + else: + break + else: + raise + + return protocol