Closed johntyree closed 8 years ago
The test_process_lock module assumes we're on a POSIX system.
test_process_lock
It looks like it can be fixed pretty easily, but I really don't know much about the details of locking on various platforms.
Here we import fcntl: https://github.com/harlowja/fasteners/blob/master/fasteners/tests/test_process_lock.py#L19
fcntl
And here we use it: https://github.com/harlowja/fasteners/blob/master/fasteners/tests/test_process_lock.py#L127
And here it looks like we could be using this instead: https://github.com/harlowja/fasteners/blob/master/fasteners/process_lock.py#L227
The
test_process_lock
module assumes we're on a POSIX system.It looks like it can be fixed pretty easily, but I really don't know much about the details of locking on various platforms.
Here we import
fcntl
: https://github.com/harlowja/fasteners/blob/master/fasteners/tests/test_process_lock.py#L19And here we use it: https://github.com/harlowja/fasteners/blob/master/fasteners/tests/test_process_lock.py#L127
And here it looks like we could be using this instead: https://github.com/harlowja/fasteners/blob/master/fasteners/process_lock.py#L227