summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_print.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-24 16:58:36 (GMT)
commitb0f5adc3f4e098b1744eeac65fc830fb1df2b8ab (patch)
treee2936db9f8e1194464aeb7e9546d5a892f7239c7 /Lib/test/test_print.py
parentf14c7fc33da8ba3aa28bbb7b0305ea12ab30be09 (diff)
downloadcpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.zip
cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.gz
cpython-b0f5adc3f4e098b1744eeac65fc830fb1df2b8ab.tar.bz2
use assert[Not]IsInstance where appropriate
Diffstat (limited to 'Lib/test/test_print.py')
-rw-r--r--Lib/test/test_print.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_print.py b/Lib/test/test_print.py
index 394a2f1..f53d9c5 100644
--- a/Lib/test/test_print.py
+++ b/Lib/test/test_print.py
@@ -128,11 +128,11 @@ class TestPrint(unittest.TestCase):
self.assertEqual(u''.join(buf.buf), 'hi nothing\n')
buf = Recorder(False)
print('hi', 'bye', end=u'\n', file=buf)
- self.assertTrue(isinstance(buf.buf[1], unicode))
- self.assertTrue(isinstance(buf.buf[3], unicode))
+ self.assertIsInstance(buf.buf[1], unicode)
+ self.assertIsInstance(buf.buf[3], unicode)
del buf.buf[:]
print(sep=u'x', file=buf)
- self.assertTrue(isinstance(buf.buf[-1], unicode))
+ self.assertIsInstance(buf.buf[-1], unicode)
def test_main():