##// END OF EJS Templates
py3: use print_function in test-filelog.py
Robert Stanca -
r28744:6537e143 default
parent child Browse files
Show More
@@ -56,7 +56,6 b''
56 56 tests/test-demandimport.py not using absolute_import
57 57 tests/test-demandimport.py requires print_function
58 58 tests/test-doctest.py not using absolute_import
59 tests/test-filelog.py requires print_function
60 59 tests/test-hg-parseurl.py not using absolute_import
61 60 tests/test-hg-parseurl.py requires print_function
62 61 tests/test-hgweb-auth.py not using absolute_import
@@ -243,7 +242,6 b''
243 242 mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
244 243 tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
245 244 tests/test-demandimport.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
246 tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
247 245 tests/test-hg-parseurl.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
248 246 tests/test-hgweb-auth.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
249 247 tests/test-hybridencode.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
@@ -2,7 +2,7 b''
2 2 """
3 3 Tests the behavior of filelog w.r.t. data starting with '\1\n'
4 4 """
5 from __future__ import absolute_import
5 from __future__ import absolute_import, print_function
6 6 from mercurial import (
7 7 hg,
8 8 ui,
@@ -37,7 +37,7 b' def addrev(text, renamed=False):'
37 37 lock.release()
38 38
39 39 def error(text):
40 print 'ERROR: ' + text
40 print('ERROR: ' + text)
41 41
42 42 textwith = '\1\nfoo'
43 43 without = 'foo'
@@ -59,4 +59,4 b' if fl.cmp(node, textwith) or not fl.cmp('
59 59 if fl.size(1) != len(textwith):
60 60 error('filelog.size for a renaming + data starting with \\1\\n')
61 61
62 print 'OK.'
62 print('OK.')
General Comments 0
You need to be logged in to leave comments. Login now