Skip to content

Commit 1163fb9

Browse files
[2.7] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3838)
(cherry picked from commit f4ea642)
1 parent 40d736b commit 1163fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_mailbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def test_create_tmp(self, repetitions=10):
654654
hostname = hostname.replace(':', r'\072')
655655
pid = os.getpid()
656656
pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)"
657-
r"Q(?P<Q>\d+)\.(?P<host>[^:/]+)")
657+
r"Q(?P<Q>\d+)\.(?P<host>[^:/]*)")
658658
previous_groups = None
659659
for x in xrange(repetitions):
660660
tmp_file = self._box._create_tmp()

0 commit comments

Comments
 (0)