changeset 40320: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
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	Tue Oct 16 07:19:38 2018 +0200
+++ b/tests/test-storage.py	Tue Oct 16 17:48:28 2018 +0200
@@ -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')