##// END OF EJS Templates
tests: force `dummysmtpd.py` to write its log file with '\n' on Windows...
Matt Harbison -
r52986:dbd2d562 default
parent child Browse files
Show More
@@ -3,6 +3,7 b''
3 """dummy SMTP server for use in tests"""
3 """dummy SMTP server for use in tests"""
4
4
5
5
6 import io
6 import optparse
7 import optparse
7 import os
8 import os
8 import socket
9 import socket
@@ -16,6 +17,13 b' from mercurial import ('
16 ui as uimod,
17 ui as uimod,
17 )
18 )
18
19
20 if pycompat.iswindows:
21 sys.stdout = io.TextIOWrapper(
22 sys.stdout.buffer,
23 sys.stdout.encoding,
24 sys.stdout.errors,
25 newline="\n",
26 )
19
27
20 if os.environ.get('HGIPV6', '0') == '1':
28 if os.environ.get('HGIPV6', '0') == '1':
21 family = socket.AF_INET6
29 family = socket.AF_INET6
General Comments 0
You need to be logged in to leave comments. Login now