Skip to content

New failures in test_all stubs tests #1854

@mdickinson

Description

@mdickinson

Details of the failure:

======================================================================
FAIL: test_all (traits.stubs_tests.test_all.TestAnnotations.test_all) (file_path=PosixPath('/Users/mdickinson/.venvs/traits/lib/python3.13/site-packages/traits/stubs_tests/examples/Any.py'))
Run mypy for all files contained in traits.stubs_tests/examples
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mdickinson/.venvs/traits/lib/python3.13/site-packages/traits/stubs_tests/test_all.py", line 44, in test_all
    self.assertRaisesMypyError(file_path)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/Users/mdickinson/.venvs/traits/lib/python3.13/site-packages/traits/stubs_tests/util.py", line 178, in assertRaisesMypyError
    raise AssertionError(
    ...<3 lines>...
    )
AssertionError: expected errors on lines 58, but no mypy errors were reported for those lines

I'm guessing that this is related to a change in mypy version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions