-
Notifications
You must be signed in to change notification settings - Fork 829
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
Tests on Windows fail with [WinError 6] The handle is invalid #1061
Comments
I just tested this on Windows 10 and am unable to reproduce. Can anyone else test and troubleshoot on Windows 11? |
I was finally able to test this on a Windows 11 machine. It does not produce an error in the Python interpreter, IPython, or JupyterLab. But it does generate the error @Vuizur documented when running the test suite via @Vuizur you may want to open an issue with pytest instead. |
The relevant pytest issue appears to be here: pytest-dev/pytest#8257, though this may possibly also be relevant: pytest-dev/pytest#2251 In turn this seems to affect other downstream pytest users (e.g., facebook/Ax#1781, Delgan/loguru#499, yijiangh/pybullet_planning#13). I'm going to close this issue here as it seems to be a pytest issue with writing stdout to the terminal on Windows. |
Thanks a lot for the investigation!
Dne út 10. 10. 2023 19:16 uživatel Geoff Boeing ***@***.***>
napsal:
… The relevant pytest issue appears to be here: pytest-dev/pytest#8257
<pytest-dev/pytest#8257>, though this may
possibly also be relevant: pytest-dev/pytest#2251
<pytest-dev/pytest#2251>
In turn this seems to affect other downstream pytest users (e.g.,
facebook/Ax#1781 <facebook/Ax#1781>,
Delgan/loguru#499 <Delgan/loguru#499>,
yijiangh/pybullet_planning#13
<yijiangh/pybullet_planning#13>).
I'm going to close this issue here as it seems to be a pytest issue with
writing stdout to the terminal on Windows.
—
Reply to this email directly, view it on GitHub
<#1061 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG66XKKX7XLOFYUNA6M4RUTX6V7FHAVCNFSM6AAAAAA5HOBOVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJVHEYDANZQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Contributing guidelines
Documentation
Existing issues
What operating system and Python version are you using?
Windows 11/Python 3.11
What OSMnx version are you using?
cloned from git today
Environment packages and versions
How did you install OSMnx?
Pip
Problem description
When I run any test (I clone the repo, execute
hatch shell
and thepytest
), it fails with the following error:I don't know the reason, only that it is caused by this block (called when there is a log function call in the test code):
(So replacing it with print(message) causes the tests to run correctly.)
Complete minimal reproducible example
-
The text was updated successfully, but these errors were encountered: