From 7b7bb7d2de2fcbcc24e20bdf8a4b9533629cff44 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 28 Feb 2017 22:35:35 -0800 Subject: [PATCH] use select instead of _opcode for import test --- Lib/test/test_import/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index bd92b4739da471..6e8ed3686dd352 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -88,12 +88,12 @@ def test_from_import_missing_attr_has_name_and_path(self): self.assertRegex(str(cm.exception), "cannot import name 'i_dont_exist' from 'os' \(.*os.py\)") def test_from_import_missing_attr_has_name_and_so_path(self): - import _opcode + import select with self.assertRaises(ImportError) as cm: - from _opcode import i_dont_exist - self.assertEqual(cm.exception.name, '_opcode') - self.assertEqual(cm.exception.path, _opcode.__file__) - self.assertRegex(str(cm.exception), "cannot import name 'i_dont_exist' from '_opcode' \(.*\.(so|dll)\)") + from select import i_dont_exist + self.assertEqual(cm.exception.name, 'select') + self.assertEqual(cm.exception.path, select.__file__) + self.assertRegex(str(cm.exception), "cannot import name 'i_dont_exist' from 'select' \(.*\.(so|pyd)\)") def test_from_import_missing_attr_has_name(self): with self.assertRaises(ImportError) as cm: