Skip to content

Commit d9c21a4

Browse files
miss-islingtonserhiy-storchaka
authored andcommitted
[3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)
(cherry picked from commit f4ea642)
1 parent a4dfe1c commit d9c21a4

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
@@ -746,7 +746,7 @@ def test_create_tmp(self, repetitions=10):
746746
hostname = hostname.replace(':', r'\072')
747747
pid = os.getpid()
748748
pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)"
749-
r"Q(?P<Q>\d+)\.(?P<host>[^:/]+)")
749+
r"Q(?P<Q>\d+)\.(?P<host>[^:/]*)")
750750
previous_groups = None
751751
for x in range(repetitions):
752752
tmp_file = self._box._create_tmp()

0 commit comments

Comments
 (0)