diff --git a/tests/functional/r/regression/regression_3595_notcallable_collections.py b/tests/functional/r/regression/regression_3595_notcallable_collections.py new file mode 100644 index 0000000000..120b26a048 --- /dev/null +++ b/tests/functional/r/regression/regression_3595_notcallable_collections.py @@ -0,0 +1,13 @@ +# pylint: disable=missing-docstring,unused-import +# https://github.com/PyCQA/pylint/issues/3595 + +import collections + +class Example: + def __init__(self): + self.prev() + self.next() + def prev(self): + pass + def next(self): + pass diff --git a/tests/functional/r/regression/regression_4221_object_instanceattr.py b/tests/functional/r/regression/regression_4221_object_instanceattr.py new file mode 100644 index 0000000000..4c346b1458 --- /dev/null +++ b/tests/functional/r/regression/regression_4221_object_instanceattr.py @@ -0,0 +1,8 @@ +# pylint: disable=missing-docstring +# https://github.com/PyCQA/pylint/issues/4221 + +import random +o = object() +if random.choice([True, False]): + o.count = None +"abc".count("a")