$OpenBSD: patch-ioflo_aid_test_test_classing_py,v 1.2 2017/09/14 14:04:05 ajacoutot Exp $

SyntaxError: 'return' with argument inside generator

Index: ioflo/aid/test/test_classing.py
--- ioflo/aid/test/test_classing.py.orig
+++ ioflo/aid/test/test_classing.py
@@ -154,7 +154,8 @@ class BasicTestCase(unittest.TestCase):
                 yield b""
                 yield b""
                 yield b"Hello There"
-                return b"Goodbye"
+                yield b"Goodbye"
+                return
 
             # now use it like WSGI server does
             msgs = []
@@ -215,7 +216,8 @@ class BasicTestCase(unittest.TestCase):
                     yield b""
                     yield b""
                     yield b"Hello There " + self.name.encode()
-                    return b"Goodbye"
+                    yield b"Goodbye"
+                    return
 
             # now use it like WSGI server does
             r = R()
