Skip to content

Commit f4ea642

Browse files
bpo-31627: Make test_mailbox be lenient to empty hostname. (python#3821)
1 parent 101a5e8 commit f4ea642

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)