-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from mcmtroffaes/feature/fix-tests
Fix some issues for the latest version of Sphinx.
- Loading branch information
Showing
20 changed files
with
198 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
extensions = ['sphinxcontrib.bibtex'] | ||
exclude_patterns = ['_build'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Contents | ||
======== | ||
|
||
.. toctree:: | ||
|
||
doc0 | ||
doc1 | ||
doc2 | ||
doc3 | ||
doc4 | ||
doc5 | ||
doc6 | ||
doc7 | ||
doc8 | ||
doc9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
doc0 | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc1 | ||
---- | ||
|
||
:cite:`1979-shafer` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc2 | ||
---- | ||
|
||
:cite:`1977-morris` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc3 | ||
---- | ||
|
||
:cite:`1972-savage` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc4 | ||
---- | ||
|
||
:cite:`rockafellar-1970` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc5 | ||
---- | ||
|
||
:cite:`1966-arrow` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc6 | ||
---- | ||
|
||
:cite:`1934-hildebrandt` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc7 | ||
---- | ||
|
||
:cite:`1986-genest-zidek-combining-probability-distributions` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc8 | ||
---- | ||
|
||
:cite:`2001-kennedy-calibration` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
doc9 | ||
---- | ||
|
||
.. bibliography:: refs.bib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
@article{1979-shafer, | ||
author = {Glenn Shafer}, | ||
title = {Allocations of Probability}, | ||
journal = {The Annals of Probability}, | ||
year = {1979}, | ||
volume = {7}, | ||
number = {5}, | ||
pages = {827--839} | ||
} | ||
|
||
@article{1977-morris, | ||
author = {Peter A. Morris}, | ||
title = {Combining expert judgments: a {B}ayesian approach}, | ||
journal = {Management Science}, | ||
year = {1977}, | ||
volume = {23}, | ||
number = {7}, | ||
pages = {679--693} | ||
} | ||
|
||
@book{1972-savage, | ||
author = {Leonard J. Savage}, | ||
title = {The Foundations of Statistics}, | ||
publisher = {Dover}, | ||
year = {1972}, | ||
address = {New York} | ||
} | ||
|
||
@book{rockafellar-1970, | ||
author = {R. Tyrrell Rockafellar}, | ||
title = {Convex Analysis}, | ||
publisher = {Princeton University Press}, | ||
year = {1970}, | ||
address = {Princeton} | ||
} | ||
|
||
@article{1966-arrow, | ||
author = {Arrow, K.}, | ||
title = {Exposition of the theory of choice under uncertainty}, | ||
journal = {Synthese}, | ||
year = {1966}, | ||
volume = {16}, | ||
number = {3--4}, | ||
pages = {253--269} | ||
} | ||
|
||
@article{1951-ville, | ||
author = {Jean Ville and P. K. Newman}, | ||
title = {The Existence-Conditions of a Total Utility Function }, | ||
journal = {The Review of Economic Studies}, | ||
year = {1951}, | ||
volume = {19}, | ||
number = {2}, | ||
pages = {123--128} | ||
} | ||
|
||
@article{1934-hildebrandt, | ||
author = {T. H. Hildebrandt}, | ||
title = {On Bounded Functional Operations}, | ||
journal = {Transactions of the American Mathematical Society}, | ||
year = {1934}, | ||
volume = {36}, | ||
number = {4}, | ||
pages = {868--875} | ||
} | ||
|
||
@article{1986-genest-zidek-combining-probability-distributions, | ||
author = {Christian Genest and James V. Zidek}, | ||
title = {Combining Probability Distributions: A Critique and an Annotated Bibliography}, | ||
journal = {Statistical Science}, | ||
year = {1986}, | ||
volume = {1}, | ||
number = {1}, | ||
pages = {114--148} | ||
} | ||
|
||
@article{2001-kennedy-calibration, | ||
author = {Marc C. Kennedy and Anthony O'Hagan}, | ||
title = {Bayesian Calibration of Computer Models}, | ||
journal = {Journal of the Royal Statistical Society, Series B}, | ||
year = {2001}, | ||
volume = {63}, | ||
number = {3}, | ||
pages = {425--464} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
""" | ||
test_issue80 | ||
~~~~~~~~~~~~ | ||
Test parallel build. | ||
""" | ||
|
||
import re | ||
from six import StringIO | ||
|
||
from util import path, with_app | ||
|
||
srcdir = path(__file__).parent.joinpath('issue80').abspath() | ||
warnfile = StringIO() | ||
|
||
|
||
def teardown_module(): | ||
(srcdir / '_build').rmtree(True) | ||
|
||
|
||
@with_app(srcdir=srcdir, warning=warnfile, parallel=8) | ||
def test_issue80_parallel(app): | ||
app.builder.build_all() | ||
warnings = warnfile.getvalue() | ||
assert re.search( | ||
'the sphinxcontrib.bibtex extension is not safe for parallel ' | ||
'reading, doing serial read', warnings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
test_issue80 | ||
~~~~~~~~~~~~ | ||
Test parallel build. | ||
""" | ||
|
||
from util import path, with_app | ||
|
||
srcdir = path(__file__).parent.joinpath('issue80').abspath() | ||
|
||
|
||
def teardown_module(): | ||
(srcdir / '_build').rmtree(True) | ||
|
||
|
||
@with_app(srcdir=srcdir, warningiserror=True, parallel=0) | ||
def test_issue80_serial(app): | ||
app.builder.build_all() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters