diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-17 03:08:25 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-17 03:08:25 +0200 |
commit | dc071966398d26159773ec627c954cf651d3036e (patch) | |
tree | 845cbc45a3399c17837bf4c2d03e1e40e2e7c74d /pylint/test/unittest_checkers_utils.py | |
parent | 45780992de1fe5b55c756a2f279052ba8d36ad5f (diff) | |
download | pylint-git-dc071966398d26159773ec627c954cf651d3036e.tar.gz |
Remove features in 1.6.0 which were scheduled for removal.
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 |