-
Notifications
You must be signed in to change notification settings - Fork 17
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 fail on MacOS #167
Comments
I could be totally off the mark here, but could be a result of stdin/stdout being connected to a pipe rather than terminal |
…ose operations fail on a pipe, ie when running pytest. Fix for #167, tests fail on macOS.
(cough) fix incoming |
Not sure this issue should be closed (if we want to support *nix)... The fix that was implemented will still evaluate the fileno(), Attempting to check if printing So, I don't think (unless I'm missing something) that it's an easy thing to either check for With a small tweak to the tox.ini to accept posargs for the pytest call, pressing enter allows the tests to continue, I think it's one of the Ending up with the tests running, and passing Including the tests that I've got in my branch for the fxconfig duplicate prevention. Note: tests not finished yet. The weird thing is that the captures that I'm doing there actually work with At this point, I think I'm probably best to do my development and testing on a windows machine, since that's where it really matters for us. |
Also, @josh-marshall-amp suggested to me the other day on messenger
Doing this makes the tests run, however my tests that are using pytests capture fixture (capfd at this point, but I get the same (lack of) result with capsys) don't capture anything. So I'm not convinced that this is the solution, it could be part of it though. |
Sorry @jcollins1983, missed this response while I was buried in the Important Task. I agree my hack doesn't fix it, I've actually run into the same problem, and I'll come back to this when I get some spare cycles. My motivation here is not just for my own running, but also to make it possible to run the tests in *nix CI. I'll reopen. |
The tests fail on MacOS
(and possibly on other *nix systems)
An exception is raised on access to attributes in termios.
When running normally, this code does not raise an exception. Not sure why pytest isn't happy with it... yet.
Doesn't appear to be isolated to pytest though... pfalcon/picotui#71
Since there's no usage (that we know of) of fixate on *nix systems, it's probably not worth chasing down, but I wanted to note it.
The text was updated successfully, but these errors were encountered: