Skip to content

Commit

Permalink
tests: remove reliance on python3 name
Browse files Browse the repository at this point in the history
* run key generation using current python interpreter
* remove explicit fail when python3 is not found
  • Loading branch information
flowerysong committed Nov 12, 2024
1 parent 8a78d55 commit 056337e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import pathlib
import subprocess
import sys
import time

import pytest
Expand All @@ -18,6 +19,7 @@ def private_key(tmp_path_factory, tool_path):
['unsafe', 'example.com'],
]:
binargs = [
sys.executable,
tool_path('contrib/openarc-keygen'),
'-D',
str(basepath),
Expand Down
1 change: 0 additions & 1 deletion test/test_keygen.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def test_keygen(tool_path, tmp_path, python_version):
try:
subprocess.run(binargs, check=True)
except FileNotFoundError:
assert python_version != 'python3'
pytest.skip(f'{python_version} not found')

keystat = tmp_path.joinpath('foo._domainkey.example.com.key').stat()
Expand Down

0 comments on commit 056337e

Please sign in to comment.