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