From 372454136fd9362603e67e9fcdac426125ed122e Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 10 Nov 2020 23:27:09 +0800 Subject: [PATCH] tests/test_alpm: add --nosign and remove an unused import --- tests/test_alpm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_alpm.py b/tests/test_alpm.py index ac64f22..20dc4d4 100644 --- a/tests/test_alpm.py +++ b/tests/test_alpm.py @@ -2,12 +2,12 @@ # Copyright (c) 2020 DDoSolitary , et al. import pathlib -import pytest -import os import shutil import subprocess import tempfile +import pytest + pytestmark = [ pytest.mark.asyncio, pytest.mark.skipif(shutil.which('makepkg') is None, reason='requires makepkg command'), @@ -31,7 +31,7 @@ def setup_module(module): 'arch=(any)\n' 'provides=("test-provides=5.6-7" "test-provides-unversioned")\n' ) - subprocess.check_call(['makepkg'], cwd=pkg_path) + subprocess.check_call(['makepkg', '--nosign'], cwd=pkg_path) pkg_file = subprocess.check_output(['makepkg', '--packagelist'], cwd=pkg_path, text=True).strip() db_path = pkg_path / 'test-db' db_path.mkdir()