diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-19 19:00:44 +0000 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-19 19:00:44 +0000 |
commit | b4d4d657bb753faefe4ad1ead47996193521ad22 (patch) | |
tree | f2aed4922e0a2614d79026297300961a33802aee /Lib/test/test_bytes.py | |
parent | a913c77f964823abdf8b06e628c9b377cb310473 (diff) | |
download | cpython-b4d4d657bb753faefe4ad1ead47996193521ad22.tar.gz |
Merged revisions 79100 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79100 | florent.xicluna | 2010-03-19 19:34:55 +0100 (ven, 19 mar 2010) | 2 lines
Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.
........
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r-- | Lib/test/test_bytes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 0af068557a..6d3f8c82be 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -876,9 +876,9 @@ class AssortedBytesTest(unittest.TestCase): self.assertEqual(bytes(b"abc") <= b"ab", False) def test_doc(self): - self.assertTrue(bytearray.__doc__ != None) + self.assertIsNotNone(bytearray.__doc__) self.assertTrue(bytearray.__doc__.startswith("bytearray("), bytearray.__doc__) - self.assertTrue(bytes.__doc__ != None) + self.assertIsNotNone(bytes.__doc__) self.assertTrue(bytes.__doc__.startswith("bytes("), bytes.__doc__) def test_from_bytearray(self): |