summaryrefslogtreecommitdiff
path: root/pylint/test/functional/deprecated_methods_py3.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/deprecated_methods_py3.py')
-rw-r--r--pylint/test/functional/deprecated_methods_py3.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pylint/test/functional/deprecated_methods_py3.py b/pylint/test/functional/deprecated_methods_py3.py
new file mode 100644
index 0000000..1a5fbf0
--- /dev/null
+++ b/pylint/test/functional/deprecated_methods_py3.py
@@ -0,0 +1,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]