durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION SUMMARY I'm doing this because for some reason (that I don't really want to sort out) our log messages aren't ending up anyplace useful on Python 3. I could log to the file *instead* of stdout, but I figured we may as well not use the nicer log message placement when possible. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4203 AFFECTED FILES tests/dummysmtpd.py tests/test-patchbomb-tls.t CHANGE DETAILS diff --git a/tests/test-patchbomb-tls.t b/tests/test-patchbomb-tls.t --- a/tests/test-patchbomb-tls.t +++ b/tests/test-patchbomb-tls.t @@ -124,3 +124,8 @@ [255] $ cd .. + +This is the log for the entire lifespan of the dummy smtpd. + + $ cat dsmtpd.log + listening at localhost:$HGPORT diff --git a/tests/dummysmtpd.py b/tests/dummysmtpd.py --- a/tests/dummysmtpd.py +++ b/tests/dummysmtpd.py @@ -19,6 +19,8 @@ ) def log(msg): + with open('dsmtpd.log', 'a') as f: + f.write(msg) sys.stdout.write(msg) sys.stdout.flush() To: durin42, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel