diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-17 01:30:26 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-17 01:30:26 (GMT) |
commit | ca9f1285835ce1319d0572a12da1efff4258c08e (patch) | |
tree | fd252c4bebeba8148984d6c4baa8284ff9ea3c36 /Lib/test/test_sys_setprofile.py | |
parent | cb17094dcde6b450cece3fd54a1314cba5aff067 (diff) | |
download | cpython-ca9f1285835ce1319d0572a12da1efff4258c08e.zip cpython-ca9f1285835ce1319d0572a12da1efff4258c08e.tar.gz cpython-ca9f1285835ce1319d0572a12da1efff4258c08e.tar.bz2 |
use assertion methods
Diffstat (limited to 'Lib/test/test_sys_setprofile.py')
-rw-r--r-- | Lib/test/test_sys_setprofile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sys_setprofile.py b/Lib/test/test_sys_setprofile.py index 1532226..9816e3e 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): |