Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure #101

Open
fabaff opened this issue Feb 28, 2024 · 2 comments
Open

Test failure #101

fabaff opened this issue Feb 28, 2024 · 2 comments

Comments

@fabaff
Copy link

fabaff commented Feb 28, 2024

For Nixpkgs we see an error for Python 3.11 and Python 3.12 with pytest 7.4.4 and mypy-plugins 3.0.0.

============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.4, pluggy-1.4.0
rootdir: /build/source
configfile: pyproject.toml
testpaths: test-data
plugins: mypy-plugins-3.0.0
collected 20 items                                                             

test-data/test-etree.yml ....F.............                              [ 90%]
test-data/test_objectify.yml ..

=================================== FAILURES ===================================
__________________________ etree_element_iterchildren __________________________
/build/source/test-data/test-etree.yml:37: 
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: 
E   Actual:
E     main:3: note: Revealed type is "def (tag: Union[Union[builtins.str, builtins.bytes, lxml.etree.QName], typing.Collection[Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...]], Any, None] =, *tags: Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...], *, reversed: builtins.bool =) -> typing.Iterator[lxml.etree._Element]" (diff)
E     ...
E   Expected:
E     main:3: note: Revealed type is "def (tag: Union[Union[builtins.str, builtins.bytes, lxml.etree.QName], typing.Collection[Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...]], Any, None] =, *tags: Union[builtins.str, builtins.bytes, lxml.etree.QName, typing.Collection[...], ...], reversed: builtins.bool =) -> typing.Iterator[lxml.etree._Element]" (diff)
E     ...
E   Alignment of first line difference:
E     E: ...llection[...], ...], reversed: builtins.bool =) -> typing.Iterator[lx...
E     A: ...llection[...], ...], *, reversed: builtins.bool =) -> typing.Iterator...
E                                ^
=========================== short test summary info ============================
FAILED test-data/test-etree.yml::etree_element_iterchildren - 
======================== 1 failed, 19 passed in 21.93s =========================
@scoder
Copy link
Member

scoder commented Feb 28, 2024 via email

@Dreamsorcerer
Copy link

If the test is comparing the actual output strings from mypy, then surely the version of mypy needs to be pinned with the project. The error messages could change in any release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants