summaryrefslogtreecommitdiff
path: root/pylint/test/functional/deprecated_methods_py3.py
blob: 1a5fbf014a9f65d2b7135233a7aca136ca82f896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
""" Functional tests for method deprecation. """
# pylint: disable=missing-docstring
import unittest
import distutils
import xml.etree.ElementTree


class MyTest(unittest.TestCase):
    def test(self):
        self.assert_(True)  # [deprecated-method]

REG = distutils.command.register.register('a')
REG.check_metadata()        # [deprecated-method]

xml.etree.ElementTree.Element('tag').getchildren()  # [deprecated-method]