Merge pull request #17 from haydennyyy/fix-tmux-tests

Prevent bashrc interfering in suspend tests
This commit is contained in:
Anthony Sottile
2019-11-01 10:38:06 -07:00
committed by GitHub

View File

@@ -731,7 +731,7 @@ def test_suspend(tmpdir):
f = tmpdir.join('f')
f.write('hello')
with PrintsErrorRunner('env', 'PS1=$ ', 'bash') as h:
with PrintsErrorRunner('bash', '--norc') as h:
cmd = (sys.executable, '-mcoverage', 'run', '-m', 'babi', str(f))
h.press_and_enter(' '.join(shlex.quote(part) for part in cmd))
h.await_text(babi.VERSION_STR)
@@ -752,7 +752,7 @@ def test_suspend_with_resize(tmpdir):
f = tmpdir.join('f')
f.write('hello')
with PrintsErrorRunner('env', 'PS1=$', 'bash') as h:
with PrintsErrorRunner('bash', '--norc') as h:
cmd = (sys.executable, '-mcoverage', 'run', '-m', 'babi', str(f))
h.press_and_enter(' '.join(shlex.quote(part) for part in cmd))
h.await_text(babi.VERSION_STR)