mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-31627: Make test_mailbox be lenient to empty hostname. (#3821)
This commit is contained in:
parent
101a5e84ac
commit
f4ea642cb6
1 changed files with 1 additions and 1 deletions
|
@ -746,7 +746,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 range(repetitions):
|
||||
tmp_file = self._box._create_tmp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue