diff options
author | Robert Cohn <robert.s.cohn@intel.com> | 2020-10-01 03:47:56 +0300 |
---|---|---|
committer | Robert Cohn <robert.s.cohn@intel.com> | 2020-10-01 03:47:56 +0300 |
commit | c08214fe92c8ab61219ce46af0ff634a57b8431c (patch) | |
tree | cd82eb255d5e1cd83b21a0df1e635fa2c7fedf24 /sphinx/testing | |
parent | d8c006f1c0e612d0dc595ae463b8e4c3ebee5ca4 (diff) |
add parallel to SphinxTestApp
Diffstat (limited to 'sphinx/testing')
-rw-r--r-- | sphinx/testing/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py index 80ca84cb3..c0dd1feac 100644 --- a/sphinx/testing/util.py +++ b/sphinx/testing/util.py @@ -108,7 +108,7 @@ class SphinxTestApp(application.Sphinx): def __init__(self, buildername: str = 'html', srcdir: path = None, freshenv: bool = False, confoverrides: Dict = None, status: IO = None, warning: IO = None, - tags: List[str] = None, docutilsconf: str = None) -> None: + tags: List[str] = None, docutilsconf: str = None, parallel: int = 0) -> None: if docutilsconf is not None: (srcdir / 'docutils.conf').write_text(docutilsconf) @@ -133,7 +133,7 @@ class SphinxTestApp(application.Sphinx): try: super().__init__(srcdir, confdir, outdir, doctreedir, buildername, confoverrides, status, warning, - freshenv, warningiserror, tags) + freshenv, warningiserror, tags, parallel=parallel) except Exception: self.cleanup() raise |