[Python-checkins] cpython (3.5): use assert method in another place

benjamin.peterson python-checkins at python.org
Sat May 30 07:02:29 CEST 2015


https://hg.python.org/cpython/rev/c794af63feef
changeset:   96365:c794af63feef
branch:      3.5
parent:      96363:b85028c9d4b9
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat May 30 00:02:17 2015 -0500
summary:
  use assert method in another place

files:
  Lib/test/test_importlib/extension/test_loader.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_importlib/extension/test_loader.py b/Lib/test/test_importlib/extension/test_loader.py
--- a/Lib/test/test_importlib/extension/test_loader.py
+++ b/Lib/test/test_importlib/extension/test_loader.py
@@ -217,7 +217,7 @@
         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'''

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list