From cdc5241a3bcf2d9c47a095538a1824d4ede7a334 Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sun, 13 Jan 2019 15:30:47 +0900 Subject: [PATCH 1/2] AppVeyor must be failed when pytest has any test failures. --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 9da9bc56d..cceec5487 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -35,7 +35,7 @@ test_script: if (-not $tests) { $tests = '' } & "C:\Python$($env:PYTHON)\python.exe" -m pytest $test_ignore.Split(' ') --junitxml .junit.xml $tests.Split(' ') Pop-Location - if ($LastExitCode -eq 1) { Write-Host "Test Failures Occurred, leaving for test result parsing" } + if ($LastExitCode -eq 1) { Write-Host "Test Failures Occurred, leaving for test result parsing"; exit $LastExitCode } elseif ($LastExitCode -ne 0) { Write-Host "Other Error Occurred, aborting"; exit $LastExitCode } after_test: From dc6b586c5dcf2cdbfea266f78c105c7a348f3292 Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sun, 13 Jan 2019 22:41:26 +0900 Subject: [PATCH 2/2] Publisher requires destination parameter. This change fixes a bug that introduced at de49b991f635. --- sphinx/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx/io.py b/sphinx/io.py index 3544a751b..9cc9f44e4 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -316,7 +316,8 @@ def read_doc(app, env, filename): pub = Publisher(reader=reader, parser=parser, writer=SphinxDummyWriter(), - source_class=SphinxFileInput) + source_class=SphinxFileInput, + destination=NullOutput()) pub.process_programmatic_settings(None, env.settings, None) pub.set_source(source_path=filename)