-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolved issues around thread pool events not triggering and busy loop
in AsyncResult
- Loading branch information
Showing
3 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import sys | ||
import rpyc | ||
from pathlib import Path | ||
|
||
def load_tests(loader, standard_tests, pattern): | ||
# Hook rpyc logger, unittest verbosity, and system paths | ||
#rpyc.core.DEFAULT_CONFIG['logger'] = rpyc.lib.setup_logger() | ||
rpyc_tests_path = Path(__file__).absolute().parent | ||
rpyc_path = rpyc_tests_path.parent | ||
for p in [str(rpyc_path), str(rpyc_tests_path)]: | ||
if p not in sys.path: | ||
sys.path.insert(0, p) | ||
|
||
# Discover on tests and add paths | ||
tests = loader.discover(start_dir=rpyc_tests_path, pattern=pattern, top_level_dir=rpyc_path) | ||
standard_tests.addTests(tests) | ||
return standard_tests |