import subprocess
import textwrap
import time
+import os
import pytest
"""
cfg_fname = maildir.path / 'notmuch-config'
cmd = ['notmuch'] + list(args)
- print('Invoking: {}'.format(' '.join(cmd)))
+ env = os.environ.copy()
+ env['NOTMUCH_CONFIG'] = str(cfg_fname)
proc = subprocess.run(cmd,
timeout=5,
- env={'NOTMUCH_CONFIG': str(cfg_fname)})
+ env=env)
proc.check_returncode()
return run