Patchwork D3321: py3: add b'' prefixes to tests/test-status-inprocess.py

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 8:47 p.m.
Message ID <differential-rev-PHID-DREV-p3rzyxh5xvqqakom6iwj-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30883/
State Superseded
Headers show

Comments

phabricator - April 13, 2018, 8:47 p.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame because just b'' prefixes

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-status-inprocess.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-status-inprocess.py b/tests/test-status-inprocess.py
--- a/tests/test-status-inprocess.py
+++ b/tests/test-status-inprocess.py
@@ -10,17 +10,17 @@ 
 u = uimod.ui.load()
 
 print('% creating repo')
-repo = localrepo.localrepository(u, '.', create=True)
+repo = localrepo.localrepository(u, b'.', create=True)
 
 f = open('test.py', 'w')
 try:
     f.write('foo\n')
 finally:
     f.close
 
 print('% add and commit')
-commands.add(u, repo, 'test.py')
-commands.commit(u, repo, message='*')
+commands.add(u, repo, b'test.py')
+commands.commit(u, repo, message=b'*')
 commands.status(u, repo, clean=True)