-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
221 additions
and
149 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
__package_name__ = 'portalocker' | ||
__author__ = 'Rick van Hattem' | ||
__email__ = 'wolph@wol.ph' | ||
__version__ = '2.4.0' | ||
__version__ = '2.5.0' | ||
__description__ = '''Wraps the portalocker recipe for easy usage''' | ||
__url__ = 'https://github.com/WoLpH/portalocker' | ||
|
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
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 |
---|---|---|
@@ -1,17 +1,23 @@ | ||
import py | ||
import logging | ||
import pytest | ||
|
||
import random | ||
import multiprocessing | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@pytest.fixture | ||
def tmpfile(tmpdir_factory): | ||
tmpdir = tmpdir_factory.mktemp('temp') | ||
filename = tmpdir.join('tmpfile') | ||
def tmpfile(tmp_path): | ||
filename = tmp_path / str(random.random()) | ||
yield str(filename) | ||
try: | ||
filename.remove(ignore_errors=True) | ||
except (py.error.EBUSY, py.error.ENOENT): | ||
filename.unlink(missing_ok=True) | ||
except PermissionError: | ||
pass | ||
|
||
|
||
def pytest_sessionstart(session): | ||
# Force spawning the process so we don't accidently inherit locks. | ||
# I'm not a 100% certain this will work correctly unfortunately... there | ||
# is some potential for breaking tests | ||
multiprocessing.set_start_method('spawn') |
Oops, something went wrong.