This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
multipub/.pyenv/lib/python3.7/site-packages/pylint/test/functional/generated_members.py

19 lines
484 B
Python
Raw Normal View History

2019-02-09 02:45:25 -06:00
"""Test the generated-members config option."""
# pylint: disable=pointless-statement, invalid-name, useless-object-inheritance
from __future__ import print_function
from astroid import node_classes
from pylint import checkers
class Klass(object):
"""A class with a generated member."""
print(Klass().DoesNotExist)
print(Klass().aBC_set1)
node_classes.Tuple.does.not_.exist
checkers.base.doesnotexist()
session = Klass()
SESSION = Klass()
session.rollback()
SESSION.rollback()