-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
StubtestMiscUnit.test_output fails during Debian package building #8555
Comments
Hm, @hauntsaninja I believe you wrote this code. It seems that the temp directory code is not doing what you expect. |
I did write this code. The test passes for me locally as well as in CI:
StubtestMiscUnit.test_output is a basic test of the output of the stubtest script. It appears the issue is that it's printing the absolute path of the temporary python file in the error message, whereas StubtestMiscUnit.test_output expects it to print the file location relative to cwd (which we set in One easy way to fix this test failure, since it's pretty inconsequential, would just be to |
@hauntsaninja Here's a reproducer Dockerfile FROM debian:testing-slim
RUN apt-get update && apt-get install -y mypy python3-pytest
WORKDIR /
RUN mkdir -p test-data/unit test-data/packages
ENV MYPY_TEST_PREFIX=/
RUN python3 -m pytest -k test_output -o testpaths=mypy/test -o python_files=test*.py --pyargs mypy |
and another reproducer using the latest mypy from PyPI: FROM debian:testing-slim
RUN apt-get update && apt-get install -y python3-pip python3-pytest python3-lxml
RUN pip install mypy
WORKDIR /
RUN mkdir -p test-data/unit test-data/packages
ENV MYPY_TEST_PREFIX=/
RUN python3 -m pytest -k test_output -o testpaths=mypy/test -o python_files=test*.py --pyargs mypy |
This was fixed a while back, I think by a562f0a |
mypy 0.770
The text was updated successfully, but these errors were encountered: