Remove trailing spaces. (GH-28706)

This commit is contained in:
Serhiy Storchaka 2021-10-03 16:58:14 +03:00 committed by GitHub
parent dc878240dc
commit a5a56154f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -1299,7 +1299,7 @@ class SyntaxTestCase(unittest.TestCase):
self.assertEqual(err.end_lineno, end_lineno)
if end_offset is not None:
self.assertEqual(err.end_offset, end_offset)
else:
self.fail("compile() did not raise SyntaxError")
@ -1439,7 +1439,7 @@ class SyntaxTestCase(unittest.TestCase):
self._check_error("int(**{'base': 10}, *['2'])",
"iterable argument unpacking follows "
"keyword argument unpacking")
def test_generator_in_function_call(self):
self._check_error("foo(x, y for y in range(3) for z in range(2) if z , p)",
"Generator expression must be parenthesized",