summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_http_cookiejar.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-05 14:20:25 (GMT)
committerGitHub <noreply@github.com>2018-11-05 14:20:25 (GMT)
commit34fd4c20198dea6ab2fe8dc6d32d744d9bde868d (patch)
tree7219828610de765ae5c41883b590d5c6f598ade2 /Lib/test/test_http_cookiejar.py
parentad1a25f499362eaf9cbfcafa0b8e2454eb43dcf1 (diff)
downloadcpython-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.py6
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):