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