From: Benjamin Peterson Date: Sun, 17 Oct 2010 01:30:26 +0000 (+0000) Subject: use assertion methods X-Git-Tag: v3.2a4~510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca9f1285835ce1319d0572a12da1efff4258c08e;p=thirdparty%2FPython%2Fcpython.git use assertion methods --- diff --git a/Lib/test/test_sys_setprofile.py b/Lib/test/test_sys_setprofile.py index 1532226f77e1..9816e3ed6466 100644 --- a/Lib/test/test_sys_setprofile.py +++ b/Lib/test/test_sys_setprofile.py @@ -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):