diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-09-30 19:52:00 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-30 19:52:00 (GMT) |
commit | d9c21a45fdc83904753d91ad45e3eafa195f4713 (patch) | |
tree | c7b0d369098beb490f71f4265ac5aeb98079ee83 /Lib/test/test_mailbox.py | |
parent | a4dfe1c9eaca6faf206f63a178233ffea208c906 (diff) | |
download | cpython-d9c21a45fdc83904753d91ad45e3eafa195f4713.zip cpython-d9c21a45fdc83904753d91ad45e3eafa195f4713.tar.gz cpython-d9c21a45fdc83904753d91ad45e3eafa195f4713.tar.bz2 |
[3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)
(cherry picked from commit f4ea642cb60556231e714089a79d3c59c202661e)
Diffstat (limited to 'Lib/test/test_mailbox.py')
-rw-r--r-- | Lib/test/test_mailbox.py | 2 |
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() |