summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-30 14:10:57 (GMT)
committerGitHub <noreply@github.com>2017-09-30 14:10:57 (GMT)
commitf4ea642cb60556231e714089a79d3c59c202661e (patch)
treef1d4d3ccc7ee88c5fd97117f822eb12cb5303af3
parent101a5e84acbab9d880e150195f23185dfb5449a9 (diff)
downloadcpython-f4ea642cb60556231e714089a79d3c59c202661e.zip
cpython-f4ea642cb60556231e714089a79d3c59c202661e.tar.gz
cpython-f4ea642cb60556231e714089a79d3c59c202661e.tar.bz2
bpo-31627: Make test_mailbox be lenient to empty hostname. (#3821)
-rw-r--r--Lib/test/test_mailbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py
index 2ba9443..3807b95 100644
--- a/Lib/test/test_mailbox.py
+++ b/Lib/test/test_mailbox.py
@@ -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()