comparison tests/test-status-inprocess.py @ 37660:9dfa4e9ed45d

py3: add b'' prefixes to tests/test-status-inprocess.py # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3321
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 13 Apr 2018 18:41:56 +0530
parents d83ca854fa21
children bbff7170f665
comparison
equal deleted inserted replaced
37659:575f59cdd8a1 37660:9dfa4e9ed45d
8 ) 8 )
9 9
10 u = uimod.ui.load() 10 u = uimod.ui.load()
11 11
12 print('% creating repo') 12 print('% creating repo')
13 repo = localrepo.localrepository(u, '.', create=True) 13 repo = localrepo.localrepository(u, b'.', create=True)
14 14
15 f = open('test.py', 'w') 15 f = open('test.py', 'w')
16 try: 16 try:
17 f.write('foo\n') 17 f.write('foo\n')
18 finally: 18 finally:
19 f.close 19 f.close
20 20
21 print('% add and commit') 21 print('% add and commit')
22 commands.add(u, repo, 'test.py') 22 commands.add(u, repo, b'test.py')
23 commands.commit(u, repo, message='*') 23 commands.commit(u, repo, message=b'*')
24 commands.status(u, repo, clean=True) 24 commands.status(u, repo, clean=True)
25 25
26 26
27 print('% change') 27 print('% change')
28 f = open('test.py', 'w') 28 f = open('test.py', 'w')