diff options
Diffstat (limited to 'pylint/test/unittest_checkers_utils.py')
-rw-r--r-- | pylint/test/unittest_checkers_utils.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/pylint/test/unittest_checkers_utils.py b/pylint/test/unittest_checkers_utils.py index 5a177a70a..83ba5583f 100644 --- a/pylint/test/unittest_checkers_utils.py +++ b/pylint/test/unittest_checkers_utils.py @@ -56,32 +56,6 @@ class UtilsTC(unittest.TestCase): name = utils.get_argument_from_call(node, position=0) self.assertEqual(name.name, 'a') - def test_is_import_error(self): - import_error, not_import_error = test_utils.extract_node(""" - try: - pass - except ImportError: #@ - pass - - try: - pass - except AttributeError: #@ - pass - """) - - if __pkginfo__.numversion >= (1, 6, 0): - with self.assertRaises(AttributeError): - utils.is_import_error - - with warnings.catch_warnings(record=True) as cm: - warnings.simplefilter("always") - - self.assertTrue(utils.is_import_error(import_error)) - self.assertFalse(utils.is_import_error(not_import_error)) - - self.assertEqual(len(cm), 2) - self.assertIsInstance(cm[0].message, DeprecationWarning) - def test_error_of_type(self): nodes = test_utils.extract_node(""" try: pass |