D4836: py3: byteify test-storage.py

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Oct 2 08:45:45 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfe9edc69de04: py3: byteify test-storage.py (authored by indygreg, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D4836?vs=11548&id=11551#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4836?vs=11548&id=11551

REVISION DETAIL
  https://phab.mercurial-scm.org/D4836

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
@@ -23,15 +23,15 @@
 
 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
 
 def maketransaction(self):
     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.



To: indygreg, #hg-reviewers
Cc: mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list