Skip to content

test_linter_should_be_pickable fails #26

Closed
@mweinelt

Description

@mweinelt

We are seeing the following test failure on 0.7 with python 3.9.12 and pylint 2.13.5.

_______________________ test_linter_should_be_pickleable _______________________

linter = Checker 'master' (responsible for 'F0001', 'F0002', 'F0010', 'F0011', 'I0001', 'I0010', 'I0011', 'I0013', 'I0020', 'I0021', 'I0022', 'E0001', 'E0011', 'E0012', 'E0013', 'E0014')

    def test_linter_should_be_pickleable(linter):
        # Setup
        linter.register_checker(TypeChecker())
        augment_visit(linter, TypeChecker.visit_attribute, fake_augmentation_func)
        suppress_message(
            linter, TypeChecker.visit_attribute, "no-member", fake_suppress_func
        )
    
        # Act and Assert
>       pickle.dumps(linter)
E       TypeError: cannot pickle 'EncodedFile' object

tests/test_linter_pickle.py:25: TypeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions