Commit 1163fb9b authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

[2.7] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3838)

(cherry picked from commit f4ea642c)
parent 40d736bc
......@@ -654,7 +654,7 @@ class TestMaildir(TestMailbox, unittest.TestCase):
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 xrange(repetitions):
tmp_file = self._box._create_tmp()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment