Mercurial > hg > mercurial-source
changeset 41106:9b2e1b00ee94
tests: use byte literals in test-storage.py
This fixes a Python 3 breakage due to unknown key due to str/bytes type
mismatch.
# skip-blame just b'' literals
Differential Revision: https://phab.mercurial-scm.org/D5114
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 16 Oct 2018 17:48:28 +0200 (2018-10-16) |
parents | eb131464c805 |
children | 6994a8be3663 |
files | tests/test-storage.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-storage.py +++ b/tests/test-storage.py @@ -30,7 +30,7 @@ return fl def maketransaction(self): - vfsmap = {'plain': STATE['vfs'], 'store': STATE['vfs']} + vfsmap = {b'plain': STATE['vfs'], b'store': STATE['vfs']} return transaction.transaction(STATE['ui'].warn, STATE['vfs'], vfsmap, b'journal', b'undo')