summaryrefslogtreecommitdiff
path: root/tests/functional/m/member/member_checks_inference_improvements.py
blob: 6eefa795827fb71684e21963346c7dc1df90d25c (plain)
1
2
3
4
5
6
7
8
9
10
11
# pylint: disable=missing-docstring


def test_oserror_has_strerror():
    # https://github.com/PyCQA/pylint/issues/2553
    try:
        raise OSError()
    except OSError as exc:
        if exc.strerror is not None:
            return exc.strerror.lower()
        return None