tests: use byte literals in test-storage.py
authorGregory Szorc <gregory.szorc@gmail.com>
Tue, 16 Oct 2018 17:48:28 +0200
changeset 40320 9b2e1b00ee94
parent 40319 eb131464c805
child 40321 6994a8be3663
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
tests/test-storage.py
--- 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')