summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2012-12-27 22:34:57 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2012-12-27 22:34:57 (GMT)
commita29159b07560f6484175769fd4d470948341ccce (patch)
treef5d7092f7565d7c966976c6afb79b841890bfa79 /Lib/test/test_importlib
parent1ef73d21a209ab48248db4fa75db523e803a9f19 (diff)
downloadcpython-a29159b07560f6484175769fd4d470948341ccce.zip
cpython-a29159b07560f6484175769fd4d470948341ccce.tar.gz
cpython-a29159b07560f6484175769fd4d470948341ccce.tar.bz2
Issue #16793. Replace deprecated unittest asserts with modern counterparts.
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r--Lib/test/test_importlib/import_/test_fromlist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/import_/test_fromlist.py b/Lib/test/test_importlib/import_/test_fromlist.py
index 27b2270..c16c337 100644
--- a/Lib/test/test_importlib/import_/test_fromlist.py
+++ b/Lib/test/test_importlib/import_/test_fromlist.py
@@ -80,7 +80,7 @@ class HandlingFromlist(unittest.TestCase):
with util.import_state(meta_path=[importer]):
with self.assertRaises(ImportError) as exc:
import_util.import_('pkg', fromlist=['mod'])
- self.assertEquals('i_do_not_exist', exc.exception.name)
+ self.assertEqual('i_do_not_exist', exc.exception.name)
def test_empty_string(self):
with util.mock_modules('pkg.__init__', 'pkg.mod') as importer: