changeset 39954:a3a9b93bff80

py3: byteify test-storage.py The test now passed on Python 3. # skip-blame just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D4836
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 01 Oct 2018 23:39:49 -0700
parents 75452c1e68f6
children 8c7ecd32ccce
files tests/test-storage.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-storage.py	Tue Oct 02 14:29:56 2018 +0300
+++ b/tests/test-storage.py	Mon Oct 01 23:39:49 2018 -0700
@@ -23,7 +23,7 @@
 
 def makefilefn(self):
     """Factory for filelog instances."""
-    fl = filelog.filelog(STATE['vfs'], 'filelog-%d' % STATE['lastindex'])
+    fl = filelog.filelog(STATE['vfs'], b'filelog-%d' % STATE['lastindex'])
     STATE['lastindex'] += 1
     return fl
 
@@ -31,7 +31,7 @@
     vfsmap = {'plain': STATE['vfs']}
 
     return transaction.transaction(STATE['ui'].warn, STATE['vfs'], vfsmap,
-                                  'journal', 'undo')
+                                   b'journal', b'undo')
 
 # Assigning module-level attributes that inherit from unittest.TestCase
 # is all that is needed to register tests.