Changeset 391 for python/trunk/Lib/test/test_print.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_print.py
r2 r391 9 9 from test import test_support 10 10 11 import sys12 11 from StringIO import StringIO 13 12 … … 17 16 # sep, end, and file 18 17 # I use this machinery so that I'm not just passing default 19 # values to print, I'm ei her passing or not passing in the18 # values to print, I'm either passing or not passing in the 20 19 # arguments 21 20 dispatch = { … … 129 128 buf = Recorder(False) 130 129 print('hi', 'bye', end=u'\n', file=buf) 131 self.assert True(isinstance(buf.buf[1], unicode))132 self.assert True(isinstance(buf.buf[3], unicode))130 self.assertIsInstance(buf.buf[1], unicode) 131 self.assertIsInstance(buf.buf[3], unicode) 133 132 del buf.buf[:] 134 133 print(sep=u'x', file=buf) 135 self.assert True(isinstance(buf.buf[-1], unicode))134 self.assertIsInstance(buf.buf[-1], unicode) 136 135 137 136
Note:
See TracChangeset
for help on using the changeset viewer.