Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreemt committed Aug 9, 2023
1 parent 2885679 commit 174be37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/routine-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8]
python-version: [3.8]
poetry-version: [1.5.1]
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 5 additions & 1 deletion tests/test_deepl_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
# _ = """
lockfile = f'{Path(__file__).parent.parent / "deepl_fastapi" / "deepl_server.py.portalocker.lock"}'
logger.info("lockfile: %s", lockfile)
file = open(lockfile, "r+")

# create one if not exist
Path(lockfile).touch(exist_ok=True)
file = open(lockfile)

try:
portalocker.lock(file, portalocker.LOCK_EX | portalocker.LOCK_NB)
locked = False
Expand Down

0 comments on commit 174be37

Please sign in to comment.