[Python-checkins] r85591 - python/branches/py3k/Lib/test/test_sys_setprofile.py
benjamin.peterson
python-checkins at python.org
Sun Oct 17 03:30:26 CEST 2010
Author: benjamin.peterson
Date: Sun Oct 17 03:30:26 2010
New Revision: 85591
Log:
use assertion methods
Modified:
python/branches/py3k/Lib/test/test_sys_setprofile.py
Modified: python/branches/py3k/Lib/test/test_sys_setprofile.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys_setprofile.py (original)
+++ python/branches/py3k/Lib/test/test_sys_setprofile.py Sun Oct 17 03:30:26 2010
@@ -13,14 +13,14 @@
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):
More information about the Python-checkins
mailing list