summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-10-03 13:58:14 (GMT)
committerGitHub <noreply@github.com>2021-10-03 13:58:14 (GMT)
commita5a56154f14f3f4656a510e8b79e96d06289e654 (patch)
treedc1e534391f7f6d0844293f90866be15654a3917 /Lib
parentdc878240dcbb47e660f5ad094deba5381872f2c9 (diff)
downloadcpython-a5a56154f14f3f4656a510e8b79e96d06289e654.zip
cpython-a5a56154f14f3f4656a510e8b79e96d06289e654.tar.gz
cpython-a5a56154f14f3f4656a510e8b79e96d06289e654.tar.bz2
Remove trailing spaces. (GH-28706)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_syntax.py4
-rw-r--r--Lib/test/test_tokenize.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index f4a507e..3ce3627 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -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",
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
index f8b16e5..ca2821d 100644
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -1933,7 +1933,7 @@ b\
c"""', """\
STRING 'rb"\""a\\\\\\nb\\\\\\nc"\""' (1, 0) (3, 4)
""")
-
+
self.check_tokenize('f"abc"', """\
STRING 'f"abc"' (1, 0) (1, 6)
""")