diff options
author | Brett Cannon <bcannon@gmail.com> | 2010-06-21 02:49:35 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2010-06-21 02:49:35 (GMT) |
commit | c56b094bab0728e3a157e2b90047efdd2e817153 (patch) | |
tree | 0da130b3578591b5210d019e5f0db8280a8c26b4 /Lib/importlib | |
parent | 6ded1d56872e1de9f856e26098d66256fd51f2b9 (diff) | |
download | cpython-c56b094bab0728e3a157e2b90047efdd2e817153.zip cpython-c56b094bab0728e3a157e2b90047efdd2e817153.tar.gz cpython-c56b094bab0728e3a157e2b90047efdd2e817153.tar.bz2 |
Move over to assertIs.
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/test/test_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/test_util.py b/Lib/importlib/test/test_util.py index 406477d..602447f 100644 --- a/Lib/importlib/test/test_util.py +++ b/Lib/importlib/test/test_util.py @@ -40,7 +40,7 @@ class ModuleForLoaderTests(unittest.TestCase): with test_util.uncache(name): sys.modules[name] = module returned_module = self.return_module(name) - self.assertTrue(sys.modules[name] is returned_module) + self.assertIs(returned_module, sys.modules[name]) def test_new_module_failure(self): # Test that a module is removed from sys.modules if added but an @@ -57,7 +57,7 @@ class ModuleForLoaderTests(unittest.TestCase): with test_util.uncache(name): sys.modules[name] = module self.raise_exception(name) - self.assertTrue(sys.modules[name] is module) + self.assertIs(module, sys.modules[name]) class SetPackageTests(unittest.TestCase): |