From 0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 29 May 2015 18:44:45 -0500 Subject: use assert method (#24328) --- Lib/test/test_importlib/extension/test_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_importlib/extension/test_loader.py b/Lib/test/test_importlib/extension/test_loader.py index d82c805..24e0330 100644 --- a/Lib/test/test_importlib/extension/test_loader.py +++ b/Lib/test/test_importlib/extension/test_loader.py @@ -183,7 +183,7 @@ class MultiPhaseExtensionModuleTests(abc.LoaderTests): self.assertIsInstance(module, types.ModuleType) self.assertEqual(module.__name__, 'x') self.assertEqual(module.str_const, 'something different') - assert 'x' not in sys.modules + self.assertNotIn('x', sys.modules) def test_load_twice(self): '''Test that 2 loads result in 2 module objects''' -- cgit v0.12