summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys_setprofile.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-17 01:30:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-17 01:30:26 (GMT)
commitca9f1285835ce1319d0572a12da1efff4258c08e (patch)
treefd252c4bebeba8148984d6c4baa8284ff9ea3c36 /Lib/test/test_sys_setprofile.py
parentcb17094dcde6b450cece3fd54a1314cba5aff067 (diff)
downloadcpython-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.py4
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):