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

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 10:22 p.m.
Message ID <d79f9125a589f84ac040662f9f301dbe@localhost.localdomain>
Download mbox | patch
Permalink /patch/30940/
State Not Applicable
Headers show

Comments

phabricator - April 13, 2018, 10:22 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9dfa4e9ed45d: py3: add b&#039;&#039; prefixes to tests/test-status-inprocess.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3321?vs=8141&id=8195

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

AFFECTED FILES
  tests/test-status-inprocess.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, durin42
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)