diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-19 19:00:44 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-19 19:00:44 (GMT) |
commit | 9b86b9a086425c9c3a132ccad4ea8875083300c2 (patch) | |
tree | 0c463be0d181d3120984b50388f502f137922682 /Lib/test/test_bytes.py | |
parent | fb60f8002c3c9a6f496fb1d3cbb1a8b11d9ba793 (diff) | |
download | cpython-9b86b9a086425c9c3a132ccad4ea8875083300c2.zip cpython-9b86b9a086425c9c3a132ccad4ea8875083300c2.tar.gz cpython-9b86b9a086425c9c3a132ccad4ea8875083300c2.tar.bz2 |
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 0af0685..6d3f8c8 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): |