[Python-checkins] [3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)
Serhiy Storchaka
webhook-mailer at python.org
Sat Sep 30 15:52:03 EDT 2017
https://github.com/python/cpython/commit/d9c21a45fdc83904753d91ad45e3eafa195f4713
commit: d9c21a45fdc83904753d91ad45e3eafa195f4713
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2017年09月30日T22:52:00+03:00
summary:
[3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)
(cherry picked from commit f4ea642cb60556231e714089a79d3c59c202661e)
files:
M Lib/test/test_mailbox.py
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index 2ba944335ae..3807b95b158 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -746,7 +746,7 @@ def test_create_tmp(self, repetitions=10):
hostname = hostname.replace(':', r'072円')
pid = os.getpid()
pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)"
- r"Q(?P<Q>\d+)\.(?P<host>[^:/]+)")
+ r"Q(?P<Q>\d+)\.(?P<host>[^:/]*)")
previous_groups = None
for x in range(repetitions):
tmp_file = self._box._create_tmp()
More information about the Python-checkins
mailing list