D5114: tests: use byte literals in test-storage.py
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Oct 16 15:54:45 UTC 2018
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This fixes a Python 3 breakage due to unknown key due to str/bytes type
mismatch.
1. skip-blame just b'' literals
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5114
AFFECTED FILES
tests/test-storage.py
CHANGE DETAILS
diff --git a/tests/test-storage.py b/tests/test-storage.py
--- 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')
To: indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list