Supress output from gpg --version during tests (#4441)
This commit is contained in:
parent
0bbafb1673
commit
1b9af88572
@ -23,7 +23,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
##############################################################################
|
##############################################################################
|
||||||
import argparse
|
import argparse
|
||||||
import os.path
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import spack
|
import spack
|
||||||
@ -42,7 +42,7 @@ def testing_gpg_directory(tmpdir):
|
|||||||
|
|
||||||
def has_gnupg2():
|
def has_gnupg2():
|
||||||
try:
|
try:
|
||||||
gpg_util.Gpg.gpg()('--version')
|
gpg_util.Gpg.gpg()('--version', output=os.devnull)
|
||||||
return True
|
return True
|
||||||
except Exception:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user