summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_exceptions.py2
-rw-r--r--Lib/test/test_syntax.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index f92637f993..2b00147dc9 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -209,7 +209,7 @@ class ExceptionTests(unittest.TestCase):
check(b'Python = "\xcf\xb3\xf2\xee\xed" +', 1, 18)
check('x = "a', 1, 5)
check('lambda x: x = 2', 1, 1)
- check('f{a + b + c}', 1, 2)
+ check('f{a + b + c}', 1, 1)
check('[file for str(file) in []\n])', 2, 2)
check('a = « hello » « world »', 1, 5)
check('[\nfile\nfor str(file)\nin\n[]\n]', 3, 5)
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index ad5656bac6..6e1531e8b2 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -1305,7 +1305,7 @@ class SyntaxTestCase(unittest.TestCase):
)
def test_curly_brace_after_primary_raises_immediately(self):
- self._check_error("f{", "invalid syntax", mode="single")
+ self._check_error("f{}", "invalid syntax", mode="single")
def test_assign_call(self):
self._check_error("f() = 1", "assign")