Mercurial > hg
comparison tests/simplestorerepo.py @ 43416:e7eb67eab53f stable
tests: write out file using bytes I/O
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 writes out the file using bytes I/O to ensure we
have exactly the bytes we want in the file.
This change fixes a test failure in Python 3.5/3.6.
Differential Revision: https://phab.mercurial-scm.org/D7226
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Nov 2019 20:57:31 -0800 |
parents | 2372284d9457 |
children | 8ca92bcb3083 |
comparison
equal
deleted
inserted
replaced
43415:a8454e846736 | 43416:e7eb67eab53f |
---|