diff --git a/Lib/test/test_importlib/extension/test_loader.py b/Lib/test/test_importlib/extension/test_loader.py index 24e03303e24..154a793ae86 100644 --- a/Lib/test/test_importlib/extension/test_loader.py +++ b/Lib/test/test_importlib/extension/test_loader.py @@ -217,7 +217,7 @@ class MultiPhaseExtensionModuleTests(abc.LoaderTests): name = self.name + '_null_slots' module = self.load_module_by_name(name) self.assertIsInstance(module, types.ModuleType) - assert module.__name__ == name + self.assertEqual(module.__name__, name) def test_bad_modules(self): '''Test SystemError is raised for misbehaving extensions'''