D7226: tests: write out file using bytes I/O

2019-11-05 Thread indygreg (Gregory Szorc)
Closed by commit rHGe7eb67eab53f: tests: write out file using bytes I/O (authored by indygreg). This revision was automatically updated to reflect the committed changes. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D7226?vs=17548&id=17557 CHANGES SINCE L

D7226: tests: write out file using bytes I/O

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The encoding of sys.stdout varies between Python versions. So using a one-liner to write a file from a Unicode string is not deterministic. This commit wri