tests/test-unified-test.t
changeset 29485 6a98f9408a50
parent 25472 4d2b9b304ad0
child 35400 4441705b7111
--- a/tests/test-unified-test.t	Fri Jul 01 19:17:45 2016 -0700
+++ b/tests/test-unified-test.t	Sun Jul 03 22:28:24 2016 +0530
@@ -26,24 +26,25 @@
 
 Doctest commands:
 
-  >>> print 'foo'
+  >>> from __future__ import print_function
+  >>> print('foo')
   foo
   $ echo interleaved
   interleaved
   >>> for c in 'xyz':
-  ...     print c
+  ...     print(c)
   x
   y
   z
-  >>> print
+  >>> print()
   
   >>> foo = 'global name'
   >>> def func():
-  ...     print foo, 'should be visible in func()'
+  ...     print(foo, 'should be visible in func()')
   >>> func()
   global name should be visible in func()
-  >>> print '''multiline
-  ... string'''
+  >>> print('''multiline
+  ... string''')
   multiline
   string