diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2018-11-05 14:20:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 14:20:25 (GMT) |
commit | 34fd4c20198dea6ab2fe8dc6d32d744d9bde868d (patch) | |
tree | 7219828610de765ae5c41883b590d5c6f598ade2 /Lib/test/test_http_cookiejar.py | |
parent | ad1a25f499362eaf9cbfcafa0b8e2454eb43dcf1 (diff) | |
download | cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.zip cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.tar.gz cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.tar.bz2 |
bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284)
Two kind of mistakes:
1. Missed space. After concatenating there is no space between words.
2. Missed comma. Causes unintentional concatenating in a list of strings.
Diffstat (limited to 'Lib/test/test_http_cookiejar.py')
-rw-r--r-- | Lib/test/test_http_cookiejar.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_http_cookiejar.py b/Lib/test/test_http_cookiejar.py index 9687259..8dbea33 100644 --- a/Lib/test/test_http_cookiejar.py +++ b/Lib/test/test_http_cookiejar.py @@ -174,12 +174,10 @@ class DateTimeTests(unittest.TestCase): '1980-01-01 00:61:00', '01-01-1980 00:00:62', '01-01-1980T00:00:62', - '19800101T250000Z' - '1980-01-01 00:00:00 -2500', + '19800101T250000Z', ]: self.assertIsNone(iso2time(test), - "iso2time(%s) is not None\n" - "iso2time(test) %s" % (test, iso2time(test))) + "iso2time(%r)" % test) class HeaderTests(unittest.TestCase): |