From c56b094bab0728e3a157e2b90047efdd2e817153 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 21 Jun 2010 02:49:35 +0000 Subject: Move over to assertIs. --- Lib/importlib/test/test_util.py | 4 ++-- 1 file 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): -- cgit v0.12