mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix broken Windows tests
This commit is contained in:
parent
a8939e7938
commit
6ab221bda5
2 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
# Copyright: Ankitects Pty Ltd and contributors
|
||||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
import fcntl
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
@ -12,6 +11,8 @@ if __name__ == "__main__":
|
|||
fix = len(sys.argv) > 2
|
||||
|
||||
if sys.platform == "linux":
|
||||
import fcntl
|
||||
|
||||
file = open("/tmp/anki-black", "w")
|
||||
fcntl.lockf(file, fcntl.LOCK_EX)
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Copyright: Ankitects Pty Ltd and contributors
|
||||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
import fcntl
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
@ -12,6 +11,8 @@ if __name__ == "__main__":
|
|||
fix = len(sys.argv) > 2
|
||||
|
||||
if sys.platform == "linux":
|
||||
import fcntl
|
||||
|
||||
file = open("/tmp/anki-black", "w")
|
||||
fcntl.lockf(file, fcntl.LOCK_EX)
|
||||
|
||||
|
|
Loading…
Reference in a new issue