summaryrefslogtreecommitdiff
path: root/Lib/test/test_syntax.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-07-05 20:13:38 +0100
committerNed Deily <nad@python.org>2019-07-08 12:08:31 -0400
commit4834c80d799471a6c9ddaad9c5c82c8af156e4fd (patch)
tree565f8208a393bdf4148d2c6c3e64f51498aeec0e /Lib/test/test_syntax.py
parent7f193e89698818de5fc60a8667de786036bbef95 (diff)
downloadcpython-git-4834c80d799471a6c9ddaad9c5c82c8af156e4fd.tar.gz
[3.7] bpo-37500: Revert commit 85ed1712e428f93408f56fc684816f9a85b0ebc0 (GH-14605)
https://bugs.python.org/issue37500
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r--Lib/test/test_syntax.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index 4918e5c4c4..2b96a94401 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -650,20 +650,6 @@ class SyntaxTestCase(unittest.TestCase):
def test_break_outside_loop(self):
self._check_error("break", "outside loop")
- def test_yield_outside_function(self):
- self._check_error("if 0: yield", "outside function")
- self._check_error("class C:\n if 0: yield", "outside function")
-
- def test_return_outside_function(self):
- self._check_error("if 0: return", "outside function")
- self._check_error("class C:\n if 0: return", "outside function")
-
- def test_break_outside_loop(self):
- self._check_error("if 0: break", "outside loop")
-
- def test_continue_outside_loop(self):
- self._check_error("if 0: continue", "not properly in loop")
-
def test_unexpected_indent(self):
self._check_error("foo()\n bar()\n", "unexpected indent",
subclass=IndentationError)