-
Notifications
You must be signed in to change notification settings - Fork 15
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
Warnings after unit tests for dmod.core package #694
Comments
@christophertubbs, I'm guessing this has to do with the recent shared communicator library changes and that you'll be most likely to quickly know what's going on. |
The semaphore thing is a known issue in python itself. I don't remember which version that it goes away in. |
python -m unittest test.py The issue is here. I think I glossed over this and thought it had been addressed in #652. See comment. This is not an issue if you just |
Given that it is simply an annoyance, is MacOS-only, and seems to be a subtle, difficult item to address, I'm moving this out of our immediate TODOs. We should fix it eventually if we can, but we can live with it for now. |
It's not macOS only, just the default mp context on macOS is |
Just for history sake, the reason this is an issue is b.c. an
|
This issue might be solved by the stream conversion ticket. I believe I removed the rlock. |
While the unit tests for dmod.core pass, there are some warnings that appear after test completion. Beside the general undesirableness, the warnings are throwing off how
./scripts/run_tests.sh
indicates whether dmod.core tests passed.Current behavior
If running tests using
./scripts/test_package.sh
, you will get one of the following (note that the exact number of leaked semaphores will vary per attempt):OR
Expected behavior
Tests should simply pass without the warnings.
Steps to replicate behavior (include URLs)
./scripts/update_package.sh
to ensure the latest package versions are installed../scripts/test_package.sh python/lib/core
one or more times.The text was updated successfully, but these errors were encountered: