-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FileObserver setup concurrent-safe (#473)
* Create file storage directories concurrent-safe * File storage uses same method to make run directory for start and queue events * Remove newline * Remove trailing whitespace * Remove trailing whitespace and unused import * Use fallback of os.makedirs for python 2 * Fix typo * Test coverage also for python2 * Test make run directory can raise file exist error * Skip test with unittest.mock if unsupported python version * Improve readability of max call Co-Authored-By: Rüdiger Busche <ruedigerbusche@web.de> * Replace unittest.mock by pytest.monkeypatch * Separate creation of next run dir to new method * Revert "Test coverage also for python2" This reverts commit 025c66a. * Import python 2 fallback of file exists error * FileExistsError fallback requires argument * Avoid pylint errors when redefining builtins * Shorten lines * Move race condition catch to outer function when creating run dir
- Loading branch information
1 parent
4cad418
commit 718b798
Showing
2 changed files
with
54 additions
and
31 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