summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2010-03-19 18:34:55 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2010-03-19 18:34:55 (GMT)
commitbc27c6a5aa75a8f52304ecd311fbadef4ec621ce (patch)
tree5634ee9187192196c6e565e491144e2574c436ef /Lib/test/test_bytes.py
parent4854c969fb6f42b3d67e14977bc3f0f6f3ec70c9 (diff)
downloadcpython-bc27c6a5aa75a8f52304ecd311fbadef4ec621ce.zip
cpython-bc27c6a5aa75a8f52304ecd311fbadef4ec621ce.tar.gz
cpython-bc27c6a5aa75a8f52304ecd311fbadef4ec621ce.tar.bz2
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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 70cab1c..3f8402c 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -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):