Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_print.py

    r2 r391  
    99from test import test_support
    1010
    11 import sys
    1211from StringIO import StringIO
    1312
     
    1716#  sep, end, and file
    1817# I use this machinery so that I'm not just passing default
    19 #  values to print, I'm eiher passing or not passing in the
     18#  values to print, I'm either passing or not passing in the
    2019#  arguments
    2120dispatch = {
     
    129128        buf = Recorder(False)
    130129        print('hi', 'bye', end=u'\n', file=buf)
    131         self.assertTrue(isinstance(buf.buf[1], unicode))
    132         self.assertTrue(isinstance(buf.buf[3], unicode))
     130        self.assertIsInstance(buf.buf[1], unicode)
     131        self.assertIsInstance(buf.buf[3], unicode)
    133132        del buf.buf[:]
    134133        print(sep=u'x', file=buf)
    135         self.assertTrue(isinstance(buf.buf[-1], unicode))
     134        self.assertIsInstance(buf.buf[-1], unicode)
    136135
    137136
Note: See TracChangeset for help on using the changeset viewer.