Don't default to warn=True in integration test

This commit is contained in:
Jeff Forcier 2018-05-01 14:04:09 -07:00
parent 73ee042925
commit 36456d2a53

View file

@ -12,7 +12,7 @@ class integration(Spec):
def teardown(self):
os.chdir(self.cwd)
def _build(self, folder, opts, target, asserts=None, conf='.'):
def _build(self, folder, opts, target, asserts=None, conf='.', warn=False):
# Dynamic sphinx opt overrides
if opts:
pairs = map(lambda x: '='.join(x), (opts or {}).items())
@ -27,7 +27,7 @@ class integration(Spec):
# Build
cmd = 'sphinx-build {} -c {} -W {} {}'.format(
flagstr, conf, folder, build)
result = run(cmd, warn=True, hide=True)
result = run(cmd, warn=warn, hide=True)
if callable(asserts):
asserts(result, build, target)
return result
@ -81,6 +81,7 @@ class integration(Spec):
folder='hidden_issues',
opts=None,
target='changelog',
warn=True,
)
assert result.failed
assert "ValueError" in result.stderr