Skip to content

Test issue with 3.11 #1551

@cdce8p

Description

@cdce8p

Managed to track down the test issue we are seeing with 3.11.0b1 a bit. Seems like it's partially caused by another test case which is why I wasn't able to reproduce it locally at first. The following command can be used to recreate the issue

pytest \
    tests/unittest_brain.py::ModuleExtenderTest::test_extension_modules \
    tests/unittest_object_model.py::ExceptionModelTest::test_valueerror_py3

In particular it seems like the unittest module extender is partially responsible. Not sure though if it's a false positive or a real issue.
https://github.com/PyCQA/astroid/blob/0bf711f84d2de55bf777b45cec2449ce776a669a/astroid/brain/brain_unittest.py#L28-L31

So far I haven't figured out what exactly is going on here. It must have been a change in 3.11.0b1 though since 3.11.0a7 was ok. Maybe you two have an idea @DanielNoord @jacobtylerwalls?

/CC: @Pierre-Sassoulas

https://docs.python.org/3.11/whatsnew/changelog.html#python-3-11-0-beta-1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions