diff tests/test-hgweb-no-path-info.t @ 33746:27fb986e54d0

tests: fix simple heredoc print statements to work on Py3 There are a handful left that require some more care. Differential Revision: https://phab.mercurial-scm.org/D293
author Augie Fackler <augie@google.com>
date Thu, 15 Jun 2017 13:32:32 -0400
parents 75be14993fda
children 19f701387ed5
line wrap: on
line diff
--- a/tests/test-hgweb-no-path-info.t	Mon Jul 24 10:37:39 2017 -0400
+++ b/tests/test-hgweb-no-path-info.t	Thu Jun 15 13:32:32 2017 -0400
@@ -31,11 +31,11 @@
   > input = stringio()
   > 
   > def startrsp(status, headers):
-  >     print '---- STATUS'
-  >     print status
-  >     print '---- HEADERS'
-  >     print [i for i in headers if i[0] != 'ETag']
-  >     print '---- DATA'
+  >     print('---- STATUS')
+  >     print(status)
+  >     print('---- HEADERS')
+  >     print([i for i in headers if i[0] != 'ETag'])
+  >     print('---- DATA')
   >     return output.write
   > 
   > env = {
@@ -59,8 +59,8 @@
   >     sys.stdout.write(output.getvalue())
   >     sys.stdout.write(''.join(content))
   >     getattr(content, 'close', lambda : None)()
-  >     print '---- ERRORS'
-  >     print errors.getvalue()
+  >     print('---- ERRORS')
+  >     print(errors.getvalue())
   > 
   > output = stringio()
   > env['QUERY_STRING'] = 'style=atom'