From 8b4c9b23b301d70ebfee0c1cd48d9640bec94f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 27 Jun 2015 04:19:07 +0200 Subject: [PATCH] tests: hide git check warning --- tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 15a72f50..c3c37401 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -55,7 +55,8 @@ except libvirt.libvirtError: try: in_git = subprocess.check_output( - ['git', 'rev-parse', '--show-toplevel']).strip() + ['git', 'rev-parse', '--show-toplevel'], + stderr=open(os.devnull, 'w')).strip() except subprocess.CalledProcessError: # git returned nonzero, we are outside git repo pass