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
|
||||
##############################################################################
|
||||
import argparse
|
||||
import os.path
|
||||
import os
|
||||
|
||||
import pytest
|
||||
import spack
|
||||
@ -42,7 +42,7 @@ def testing_gpg_directory(tmpdir):
|
||||
|
||||
def has_gnupg2():
|
||||
try:
|
||||
gpg_util.Gpg.gpg()('--version')
|
||||
gpg_util.Gpg.gpg()('--version', output=os.devnull)
|
||||
return True
|
||||
except Exception:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user