D4836: py3: byteify test-storage.py

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Tue Oct 2 06:40:01 UTC 2018


indygreg created this revision.
Herald added subscribers: mercurial-devel, mjpieters.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The test now passed on Python 3.
  
  1. skip-blame just b'' prefixes

REPOSITORY
  rHG Mercurial

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