]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
use assertion methods
authorBenjamin Peterson <benjamin@python.org>
Sun, 17 Oct 2010 01:30:26 +0000 (01:30 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 17 Oct 2010 01:30:26 +0000 (01:30 +0000)
Lib/test/test_sys_setprofile.py

index 1532226f77e1efe8f45d16717418e28d82cced47..9816e3ed6466b411cce23fc9f9056cbf34643e73 100644 (file)
@@ -13,14 +13,14 @@ class TestGetProfile(unittest.TestCase):
         sys.setprofile(None)
 
     def test_empty(self):
-        assert sys.getprofile() is None
+        self.assertIsNone(sys.getprofile())
 
     def test_setget(self):
         def fn(*args):
             pass
 
         sys.setprofile(fn)
-        assert sys.getprofile() == fn
+        self.assertIs(sys.getprofile(), fn)
 
 class HookWatcher:
     def __init__(self):