Blob Blame History Raw
From 0bc66afdc10cf15bcfb8298846f4260c2b54fddb Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Mon, 11 Jul 2022 14:06:29 -0700
Subject: [PATCH 1/5] Ignore deprecated-module in
 access_attr_before_def_false_positive

This is because telnetlib is deprecated in Python 3.11. It's
hard to see exactly what this is testing - there's no great
explanation in-line and the test predates the first commit to
the git repo so we don't have a commit message to help.
telnetlib will be removed in 3.13, though, so at that point
we'll have to figure it out or drop the telnetlib part of the
test.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
 .../a/access/access_attr_before_def_false_positive.py           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/functional/a/access/access_attr_before_def_false_positive.py b/tests/functional/a/access/access_attr_before_def_false_positive.py
index cb978c84c..c723eb099 100644
--- a/tests/functional/a/access/access_attr_before_def_false_positive.py
+++ b/tests/functional/a/access/access_attr_before_def_false_positive.py
@@ -1,5 +1,5 @@
 # pylint: disable=invalid-name,too-many-public-methods,attribute-defined-outside-init
-# pylint: disable=useless-object-inheritance,too-few-public-methods
+# pylint: disable=useless-object-inheritance,too-few-public-methods,deprecated-module
 """This module demonstrates a possible problem of pyLint with calling __init__ s
 from inherited classes.
 Initializations done there are not considered, which results in Error E0203 for
-- 
2.37.0