Various tests cleanup: check_warnings/check_py3k_warnings, unittest.assert* and setUp/tearDown.

This commit is contained in:
Florent Xicluna 2010-03-19 18:34:55 +00:00
parent 4854c969fb
commit bc27c6a5aa
10 changed files with 89 additions and 91 deletions

View file

@ -841,9 +841,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):