##// END OF EJS Templates
py3: use print_function in test-status-inprocess.py
Robert Stanca -
r28766:7f7cd44c default
parent child Browse files
Show More
@@ -64,7 +64,6 b''
64 tests/test-pathencode.py requires print_function
64 tests/test-pathencode.py requires print_function
65 tests/test-run-tests.py not using absolute_import
65 tests/test-run-tests.py not using absolute_import
66 tests/test-simplemerge.py not using absolute_import
66 tests/test-simplemerge.py not using absolute_import
67 tests/test-status-inprocess.py requires print_function
68 tests/test-symlink-os-yes-fs-no.py not using absolute_import
67 tests/test-symlink-os-yes-fs-no.py not using absolute_import
69 tests/test-trusted.py not using absolute_import
68 tests/test-trusted.py not using absolute_import
70 tests/test-trusted.py requires print_function
69 tests/test-trusted.py requires print_function
@@ -228,7 +227,6 b''
228 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
227 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
229 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
228 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
230 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
229 tests/test-lrucachedict.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
231 tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
232 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
230 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
233
231
234 #endif
232 #endif
@@ -1,5 +1,5 b''
1 #!/usr/bin/python
1 #!/usr/bin/python
2 from __future__ import absolute_import
2 from __future__ import absolute_import, print_function
3 from mercurial.ui import (
3 from mercurial.ui import (
4 ui,
4 ui,
5 )
5 )
@@ -14,7 +14,7 b' from mercurial.commands import ('
14
14
15 u = ui()
15 u = ui()
16
16
17 print '% creating repo'
17 print('% creating repo')
18 repo = localrepository(u, '.', create=True)
18 repo = localrepository(u, '.', create=True)
19
19
20 f = open('test.py', 'w')
20 f = open('test.py', 'w')
@@ -23,13 +23,13 b' try:'
23 finally:
23 finally:
24 f.close
24 f.close
25
25
26 print '% add and commit'
26 print('% add and commit')
27 add(u, repo, 'test.py')
27 add(u, repo, 'test.py')
28 commit(u, repo, message='*')
28 commit(u, repo, message='*')
29 status(u, repo, clean=True)
29 status(u, repo, clean=True)
30
30
31
31
32 print '% change'
32 print('% change')
33 f = open('test.py', 'w')
33 f = open('test.py', 'w')
34 try:
34 try:
35 f.write('bar\n')
35 f.write('bar\n')
General Comments 0
You need to be logged in to leave comments. Login now