]> git.cworth.org Git - notmuch/blobdiff - bindings/python-cffi/tests/conftest.py
sprinter: change integer method to use int64_t
[notmuch] / bindings / python-cffi / tests / conftest.py
index aa940947ca56502d93a73e71e5085047f8201e98..e322cc647167e917b99a8a537b4c9b1b7100a04b 100644 (file)
@@ -1,6 +1,7 @@
 import email.message
 import mailbox
 import pathlib
+import shutil
 import socket
 import subprocess
 import textwrap
@@ -10,6 +11,12 @@ import os
 import pytest
 
 
+def pytest_report_header():
+    which = shutil.which('notmuch')
+    vers = subprocess.run(['notmuch', '--version'], stdout=subprocess.PIPE)
+    return ['{} ({})'.format(vers.stdout.decode(errors='replace').strip(),which)]
+
+
 @pytest.fixture(scope='function')
 def tmppath(tmpdir):
     """The tmpdir fixture wrapped in pathlib.Path."""