Code Monkey home page Code Monkey logo

sphinx-prompt's Introduction

Sphinx Prompt

Initialize

In conf.py add extensions += ['sphinx_prompt'].

Syntax

A default prompt can be created using a prompt directive:

.. prompt::

   <statements>

The prompt can be further customized in one of two ways:

  • Using positional arguments:

    .. prompt:: [<language> [<prompts> [<modifiers>]]]
    
        <statements>
  • Using options:

    .. prompt::
        :language: <language>
        :prompts: <prompts>
        :modifiers: <modifiers>
    
       <statements>

While these constructs generate the same output, the positional arguments cannot be used if you want to use a prompt that contains spaces. This is a limitation of reStructuredText.

Positional arguments can be mixed with options if they don't overlap (so if you pass prompts using options, you can only pass the language using positional arguments):

.. prompt:: bash
    :prompts: (cool_project) $

   python3 -m pip install --upgrade sphinx-prompt

Language

Supported language:

  • text (no pigments, default)
  • bash
  • batch
  • powershell
  • python
  • scala

Prompt(s)

If modifier is auto, a comma-separated list of prompts to find in the statements.

Else the prompt to add on each statements, for Python and Bash language the end \ is supported.

Defaults to empty, except for the shell languages listed below:

  • bash - $
  • batch - C:\>
  • powershell - PS C:\>

Examples

See: http://sbrunner.github.io/sphinx-prompt/

Run tests and prospector

python3 -m pip install --user --upgrade poetry
poetry install
poetry run pytest
poetry run prospector

The code should be formatted with black add isort.

Create new release

git tag <version>
git push origin <version>

Contributing

Install the pre-commit hooks:

pip install pre-commit
pre-commit install --allow-missing-config

sphinx-prompt's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar domdfcoding avatar ericholscher avatar geo-ghci-test[bot] avatar gtback avatar jackenmen avatar jwodder avatar qlux avatar quantifiedcode-bot avatar renovate-bot avatar renovate[bot] avatar requires avatar sbrunner avatar thesamesam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sphinx-prompt's Issues

Update README to explain purpose of this extension

I recommend adding an opening paragraph to your README that explains what this extension does because it's not clear to me. All I know is that this is dependency for the sphinx_substitution_extensions and I don't know why, what it does, or whether I actually need this dependency.

Deal with program output

This extension allows to type bash commands, but what about their output?

Please give examples how to write command output (at least with prepared text, not automatically) with your extension, or mention in the documentation that it is not possible.

Add Windows's Batch (cmd) and PowerShell languages

It would be great to get Batch and PowerShell languages (BatchLexer and PowerShellLexer) and their prompts (> or sth like C:\> for cmd and PS> or sth like PS C:\> for PowerShell).

I can try making a PR if you're interested.

Your .dependabot/config.yaml contained invalid details

Dependabot encountered the following error when parsing your .dependabot/config.yaml:

Automerging is not enabled for this account. You can enable it from the [account settings](https://app.dependabot.com/accounts/sbrunner/settings) screen in your Dependabot dashboard.

Please update the config file to conform with Dependabot's specification using our docs and online validator.

certifi-2022.9.24-py3-none-any.whl: 1 vulnerabilities (highest severity is: 6.8)

Vulnerable Library - certifi-2022.9.24-py3-none-any.whl

Python package for providing Mozilla's CA Bundle.

Library home page: https://files.pythonhosted.org/packages/1d/38/fa96a426e0c0e68aabc68e896584b83ad1eec779265a028e156ce509630e/certifi-2022.9.24-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt,/requirements.txt

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (certifi version) Remediation Available
CVE-2022-23491 Medium 6.8 certifi-2022.9.24-py3-none-any.whl Direct certifi - 2022.12.07 โŒ

Details

CVE-2022-23491

Vulnerable Library - certifi-2022.9.24-py3-none-any.whl

Python package for providing Mozilla's CA Bundle.

Library home page: https://files.pythonhosted.org/packages/1d/38/fa96a426e0c0e68aabc68e896584b83ad1eec779265a028e156ce509630e/certifi-2022.9.24-py3-none-any.whl

Path to dependency file: /requirements.txt

Path to vulnerable library: /requirements.txt,/requirements.txt

Dependency Hierarchy:

  • โŒ certifi-2022.9.24-py3-none-any.whl (Vulnerable Library)

Found in base branch: master

Vulnerability Details

Certifi is a curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. Certifi 2022.12.07 removes root certificates from "TrustCor" from the root store. These are in the process of being removed from Mozilla's trust store. TrustCor's root certificates are being removed pursuant to an investigation prompted by media reporting that TrustCor's ownership also operated a business that produced spyware. Conclusions of Mozilla's investigation can be found in the linked google group discussion.

Publish Date: 2022-12-07

URL: CVE-2022-23491

CVSS 3 Score Details (6.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: High
    • User Interaction: None
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2022-23491

Release Date: 2022-12-07

Fix Resolution: certifi - 2022.12.07

Step up your Open Source Security Game with Mend here

Type of BSD license, explicit license file

Hey-lo,

I'm building a version of sphinx-prompt using conda for conda-forge. When possible, we try to include a link to the license file in the meta.yaml specification for the build; doing so requires the license be indexed in an explicit MANIFEST.in file so that it gets included in the source distribution. Also, in the case of BSD licenses, it means that we need to know whether the package is licensed under the BSD 2-Clause or BSD 3-Clause variant.

Would you consider specifying which kind of BSD license you're using, adding a license file to the repo, and including it in the build via MANIFEST.in? Thanks very much!

Overriding doctest directive

Would it be possible for this extension to have a mode where it overrides the "selectable text" in .. doctest:: directives?

Having the >>> unselectable is by far my favorite addition of this extension, but otherwise I would like to stick to the more default doctest blocks.

latex output has "! Undefined control sequence."

First let me say thanks for providing sphinx-prompt. It makes my code documentation look better.

When I have the following rst content

.. prompt:: bash

    @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

I get an "! Undefined control sequence." error when building the generated latex file. I do not get the error when I replace .. prompt with .. code-block. When I looked at the generated latex, the code-block output has additional markup to prevent latex from incorrectly interpreting the literal content. The code-block latex is:

\begin{Verbatim}[commandchars=\\\{\}]
@powershell \PYGZhy{}NoProfile \PYGZhy{}ExecutionPolicy Bypass \PYGZhy{}Command \PYG{l+s+s2}{\PYGZdq{}iex ((New\PYGZhy{}Object System.Net.WebClient).DownloadString(\PYGZsq{}https://chocolatey.org/install.ps1\PYGZsq{}))\PYGZdq{}} \PYG{o}{\PYGZam{}\PYGZam{}} SET \PYG{l+s+s2}{\PYGZdq{}PATH=\PYGZpc{}PATH\PYGZpc{};\PYGZpc{}ALLUSERSPROFILE\PYGZpc{}\PYGZbs{}chocolatey\PYGZbs{}bin\PYGZdq{}}
\end{Verbatim}

And the prompt latex is:

\begin{Verbatim}[commandchars=\\\{\}]
$ @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
\end{Verbatim}

Unfortunately, I do not know enough about coding a sphinx directive to be any help fixing this problem. I do know how to build/install sphinx-prompt and am definitely be interested in trying out a workaround if someone could point me in the right direction.

Thanks,
Phil

Additional space is added in `prompt` with multiple prompts

This happens on the latest version available on PyPI
image

Source:

Next, your python :code:`path` can be fetched with the following commands:

.. prompt:: bash $,(redenv)...$ auto

    # If redbot is installed in a venv
    $ source ~/redenv/bin/activate
    (redenv)...$ which python

I'll make a PR in a few moments.

Indented lines in prompt

Hi,

I'm trying to use sphinx-prompt with code that has indents, such as this:

.. prompt:: python >>>,... auto

    >>> for i in range(10):
    ...     print(i)

I would expect the tab on the print(i) line to be included in the output, but it isn't.

I can see that on line 109 .strip() gets called on the line, which removes whitespace at the start and end of the line, including my indentation.

If I change .strip() to .rstrip() the indents get included in the output.

Is this the intended behaviour?

Thanks ๐Ÿ˜€

Project description

I'm packaging sphinx-prompt for Debian as a dependency of scikit-learn. However, there's very little I can use as a package description. The only descriptive text seems to be "Sphinx directive to add unselectable prompt", that's terse and ambiguous.

A slightly more descriptive text would be appreciated!

Enable using types downstream

I notice that this project ships type stubs as it includes a py.typed file, and so I am hoping to use the types in a project which inherits from it (https://pypi.org/project/Sphinx-Substitution-Extensions/#optional-sphinx-prompt).

However, IIUC, I cannot access those stubs, because I have to use __import__ to import sphinx-prompt.

For example:

sphinx_prompt = __import__("sphinx-prompt")
PromptDirective = sphinx_prompt.PromptDirective


class SubstitutionPrompt(PromptDirective):  # type: ignore[misc, valid-type]
    ...

My request is that this project is changed so that I can import sphinx_prompt (or similar).

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update dependency c2cciutils to v1.4.6
  • Update dependency poetry to v1.3.2
  • Lock file maintenance

Detected dependencies

github-actions
.github/workflows/changelog.yaml
  • actions/cache v3
.github/workflows/codeql.yaml
  • actions/checkout v3
  • github/codeql-action v2
  • github/codeql-action v2
.github/workflows/delete-old-workflows-run.yaml
  • MajorScruffy/delete-old-workflow-runs v0.3.0
.github/workflows/dependabot-auto-merge.yaml
.github/workflows/main.yaml
  • actions/checkout v3
.github/workflows/pr-checks.yaml
  • actions/checkout v3
pip_requirements
ci/requirements.txt
  • c2cciutils ==1.4.4
requirements.txt
  • poetry ==1.3.1
  • poetry-plugin-tweak-dependencies-version ==1.2.1
  • poetry-dynamic-versioning ==0.21.3
  • pip ==22.3.1
poetry
pyproject.toml
  • Sphinx 6.1.3
  • pygments 2.14.0
  • docutils 0.19
  • prospector 1.8.4
  • pytest 7.2.0
  • types-docutils 0.19.1.1

sphinx-prompt fails pip installs when using requirements files in a virtual environment

I work in a documentation development environment where we generate and preview our Sphinx documentation in a virtual environment using the Python venv module. The way our venv works is that we list sphinx-prompt as an extension in our Sphinx conf.py file. For example:

extensions = [
    "sphinx-prompt", # Required by sphinx_substitution_extensions
    "sphinx_substitution_extensions",
]

Lately, sphinx-prompt has been failing to download when generating our Sphinx files. The workaround is to do a direct pip install of the sphinx-prompt package in your environment, but that's not an ideal long-term solution. We'd like it to work the way it used to work where it could download the package from PyPi the way it should work with Sphinx.

Any ideas on how to fix it?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update CI dependencies (patch) (poetry, pre-commit, python-jsonschema/check-jsonschema)
  • Update dependency poetry to v1.8.3
  • Update dependency pytest to v8.2.1
  • Update CI dependencies (minor) (codespell-project/codespell, poetry-plugin-export)
  • Update dependency poetry-plugin-export to v1.8.0
  • Update dependency pygments to v2.18.0
  • Lock file maintenance

Detected dependencies

github-actions
.github/workflows/codeql.yaml
  • actions/checkout v4
  • github/codeql-action v3
  • github/codeql-action v3
  • ubuntu 22.04
.github/workflows/delete-old-workflows-run.yaml
  • MajorScruffy/delete-old-workflow-runs v0.3.0
  • ubuntu 22.04
.github/workflows/main.yaml
  • actions/checkout v4
  • actions/cache v4
  • actions/upload-artifact v4
  • ubuntu 22.04
.github/workflows/pr-checks.yaml
  • actions/checkout v4
  • ubuntu 22.04
.github/workflows/pull-request-automation.yaml
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • actions/github-script v7
  • ubuntu 22.04
pep621
pyproject.toml
  • poetry-core >=1.0.0
pip_requirements
ci/requirements.txt
  • c2cciutils ==1.6.18
  • pre-commit ==3.7.0
  • poetry-plugin-drop-python-upper-constraint ==0.1.0
  • poetry-plugin-export ==1.7.1
  • poetry-plugin-tweak-dependencies-version ==1.5.2
  • poetry-dynamic-versioning ==1.3.0
  • setuptools >=65.5.1
requirements.txt
  • poetry ==1.8.2
  • poetry-plugin-tweak-dependencies-version ==1.5.2
  • poetry-dynamic-versioning ==1.3.0
  • pip ==24.0
  • poetry-plugin-export ==1.7.1
  • poetry-plugin-drop-python-upper-constraint ==0.1.0
poetry
pyproject.toml
  • python >=3.9,<4.0
  • Sphinx 7.3.7
  • pygments 2.17.2
  • docutils 0.21.2
  • idna 3.7
  • prospector 1.10.3
  • pytest 8.2.0
  • types-docutils 0.21.0.20240423
  • prospector-profile-duplicated 1.5.0
pre-commit
.pre-commit-config.yaml
  • pre-commit/pre-commit-hooks v4.6.0
  • sbrunner/hooks 1.0.0
  • codespell-project/codespell v2.2.6
  • pre-commit/mirrors-prettier v3.1.0
  • shellcheck-py/shellcheck-py v0.10.0.1
  • jumanjihouse/pre-commit-hooks 3.0.0
  • python-jsonschema/check-jsonschema 0.28.2
  • sirwart/ripsecrets v0.1.8
  • psf/black 24.4.2
  • PyCQA/isort 5.13.2
  • PyCQA/autoflake v2.3.1
  • asottile/pyupgrade v3.15.2
  • PyCQA/prospector v1.10.3
  • sbrunner/jsonschema-validator 0.1.0
regex
.pre-commit-config.yaml
  • poetry 1.8.2
  • poetry 1.8.2
  • prettier 3.2.5
  • prettier-plugin-sh 0.14.0
  • prettier-plugin-toml 2.0.1
  • pyjson5 1.6.6
  • prospector-profile-duplicated 1.5.0
ci/config.yaml
  • camptocamp/c2cciutils 1.6.18

  • Check this box to trigger a request for Renovate to run again on this repository

1.8.0 is not installable from sources: .../sphinx-prompt does not contain any element

$ python -m build -w
* Creating virtualenv isolated environment...
* Installing packages in isolated environment... (poetry-core>=1.0.0, poetry-dynamic-versioning, poetry-plugin-tweak-dependencies-version)
* Getting build dependencies for wheel...
* Building wheel...
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/api.py", line 67, in build_wheel
    return WheelBuilder.make_in(poetry, Path(wheel_directory))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 74, in make_in
    wb = WheelBuilder(
         ^^^^^^^^^^^^^
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/builders/wheel.py", line 57, in __init__
    super().__init__(poetry, executable=executable)
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/builders/builder.py", line 83, in __init__
    self._module = Module(
                   ^^^^^^^
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/utils/module.py", line 79, in __init__
    PackageInclude(
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/utils/package_include.py", line 29, in __init__
    self.check_elements()
  File "/tmp/build-env-xgxeu_dd/lib/python3.12/site-packages/poetry/core/masonry/utils/package_include.py", line 66, in check_elements
    raise ValueError(
ValueError: /tmp/sphinx-prompt-1.8.0/sphinx-prompt does not contain any element

ERROR Backend subprocess exited when trying to invoke build_wheel

Safari / Chrome - The last prompt used in a document is the only prompt rendered

Create a rst document with the following content:

.. prompt:: bash 1$

   echo 1

.. prompt:: bash 2$

   echo 2

The expected output is that each of the two echo commands is preceeded by a different prompt.
This is the case in Firefox (35.0.1), as in the following image:

screenshot 2015-02-20 17 52 14

However, in Safari and Chrome (OS X 10.10.2, Safari 8.0.3, Chrome 40.0.2214.111) they have the same prompt, the last prompt used:

screenshot 2015-02-20 17 55 38

This is on a new Sphinx install with sphinx-prompt 0.2.2.

Thank you for the very useful extension.

Enable code includes, like the literalinclude directive, with prompts

Firstly, thanks for an awesome package. We're using this in the RISC-V Getting Started Guide (https://risc-v-getting-started-guide.readthedocs.io/en/latest/) and it's great.

I was curious how you would go about a problem that we have. This could be an interesting use case if we find a solution.

Namely there are two things we want to happen at the same time:

  1. we'd like our code snippets to be included from real files that can also be executed, preferably using a CI system:

https://github.com/riscv/risc-v-getting-started-guide/blob/master/source/getting-zephyr.rst

This would let our guide be tested at all times, without the risk of people finding stale content.

  1. for GDB snippets, we'd like to show the GDB prompt to clearly discriminate between input and output (that's where we are using your package):

https://github.com/riscv/risc-v-getting-started-guide/blob/master/source/zephyr-hifive1.rst

Of course, 1) and 2) are somewhat mutually exclusive as things are now.
If you're including a snippet, it can't have a prompt, otherwise it won't execute properly.

But my thinking is that we could probably work around this by specifying a prompt in a similar fashion as the begin and end strings for literalinclude. So surround the part with the prompt with a comment which gives it a prompt, and the part which is an execution result could also have some convention like being surrounded with an appropriate string and also commented out.

It's complex but doable, I suppose - but I would welcome your insight, @sbrunner.

@PiotrZierhoffer will also be interested in this.

1.5.0: pytest is failing

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-prompt-1.5.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-sphinx-prompt-1.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx-prompt-1.5.0
collected 12 items

tests/test_sphinx_prompt.py FFFFFFFFFFFF                                                                                                                             [100%]

================================================================================= FAILURES =================================================================================
_ test[arguments0-options0-content0-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: " ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] _

arguments = [], options = {}, content = ['one line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: " ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03691bb280>, name = 'prompt', arguments = [], options = {}, content = ['one line'], lineno = 0, content_offset = 0
block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments1-options1-content1-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] _

arguments = ['bash'], options = {}, content = ['one line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f0369161d30>, name = 'prompt', arguments = ['bash'], options = {}, content = ['one line'], lineno = 0, content_offset = 0
block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments2-options2-content2-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] _

arguments = [], options = {'language': 'bash'}, content = ['one line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03690ee5b0>, name = 'prompt', arguments = [], options = {'language': 'bash'}, content = ['one line'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments3-options3-content3-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">tow</span>\n<span class="prompt1">line</span>\n</pre></div></div>] _

arguments = ['bash'], options = {}, content = ['tow', 'line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">tow</span>\n<span class="prompt1">line</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03691611f0>, name = 'prompt', arguments = ['bash'], options = {}, content = ['tow', 'line'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments4-options4-content4-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one split <span class="se">\\</span>\nline</span>\n</pre></div></div>] _

arguments = ['bash'], options = {}, content = ['one split \\', 'line']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {...content: "$ ";\n}\n</style><span class="prompt1">one split <span class="se">\\</span>\nline</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03690e8eb0>, name = 'prompt', arguments = ['bash'], options = {}, content = ['one split \\', 'line'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments5-options5-content5-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">mixed split <span class="se">\\</span>\nline</span>\n<span class="prompt1">second</span>\n</pre></div></div>] _

arguments = ['bash'], options = {}, content = ['mixed split \\', 'line', 'second']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {..."prompt1">mixed split <span class="se">\\</span>\nline</span>\n<span class="prompt1">second</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03691bb670>, name = 'prompt', arguments = ['bash'], options = {}, content = ['mixed split \\', 'line', 'second']
lineno = 0, content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments6-options6-content6-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "% ";\n}\n</style><span class="prompt1">other prompt</span>\n</pre></div></div>] _

arguments = ['bash', '%'], options = {}, content = ['other prompt']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "% ";\n}\n</style><span class="prompt1">other prompt</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f036914d9a0>, name = 'prompt', arguments = ['bash', '%'], options = {}, content = ['other prompt'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments7-options7-content7-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "% ";\n}\n</style><span class="prompt1">other prompt opt</span>\n</pre></div></div>] _

arguments = [], options = {'language': 'bash', 'prompts': '%'}, content = ['other prompt opt']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "% ";\n}\n</style><span class="prompt1">other prompt opt</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03690db1f0>, name = 'prompt', arguments = [], options = {'language': 'bash', 'prompts': '%'}
content = ['other prompt opt'], lineno = 0, content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments8-options8-content8-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "C:\\\\> ";\n}\n</style><span class="prompt1">batch</span>\n</pre></div></div>] _

arguments = ['batch'], options = {}, content = ['batch']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "C:\\\\> ";\n}\n</style><span class="prompt1">batch</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f036914d820>, name = 'prompt', arguments = ['batch'], options = {}, content = ['batch'], lineno = 0, content_offset = 0
block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments9-options9-content9-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "PS C:\\\\> ";\n}\n</style><span class="prompt1"><span class="n">powershell</span></span>\n</pre></div></div>] _

arguments = ['powershell'], options = {}, content = ['powershell']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {...content: "PS C:\\\\> ";\n}\n</style><span class="prompt1"><span class="n">powershell</span></span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f03690e8550>, name = 'prompt', arguments = ['powershell'], options = {}, content = ['powershell'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments10-options10-content10-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">lexer <span class="m">1</span> <span class="m">2</span> <span class="s2">&quot;tree&quot;</span></span>\n</pre></div></div>] _

arguments = ['bash'], options = {}, content = ['lexer 1 2 "tree"']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {... <span class="m">1</span> <span class="m">2</span> <span class="s2">&quot;tree&quot;</span></span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f036914e400>, name = 'prompt', arguments = ['bash'], options = {}, content = ['lexer 1 2 "tree"'], lineno = 0
content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
_ test[arguments11-options11-content11-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\nspan.prompt2:before {\n  content: "# ";\n}\n</style><span class="prompt1">user</span>\n<span class="prompt2">root</span>\n</pre></div></div>] _

arguments = ['bash', '$,#', 'auto'], options = {}, content = ['$ user', '# root']
expected = '<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {...n  content: "# ";\n}\n</style><span class="prompt1">user</span>\n<span class="prompt2">root</span>\n</pre></div></div>'

    @pytest.mark.parametrize("arguments, options, content, expected", testdata)
    def test(arguments, options, content, expected):
        sphinx_prompt._cache.next_index = 1
        sphinx_prompt._cache.prompts.clear()
>       directive = sphinx_prompt.PromptDirective("prompt", arguments, options, content, 0, 0, "", None, None)

tests/test_sphinx_prompt.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sphinx-prompt.PromptDirective object at 0x7f0369106790>, name = 'prompt', arguments = ['bash', '$,#', 'auto'], options = {}, content = ['$ user', '# root']
lineno = 0, content_offset = 0, block_text = '', state = None, state_machine = None

    def __init__(self, name, arguments, options, content, lineno,
                 content_offset, block_text, state, state_machine):
        self.name = name
        self.arguments = arguments
        self.options = options
        self.content = content
        self.lineno = lineno
        self.content_offset = content_offset
        self.block_text = block_text
        self.state = state
        self.state_machine = state_machine
>       self.reporter = state_machine.reporter
E       AttributeError: 'NoneType' object has no attribute 'reporter'

/usr/lib/python3.8/site-packages/docutils/parsers/rst/__init__.py:331: AttributeError
========================================================================= short test summary info ==========================================================================
FAILED tests/test_sphinx_prompt.py::test[arguments0-options0-content0-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: " ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments1-options1-content1-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments2-options2-content2-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments3-options3-content3-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">tow</span>\n<span class="prompt1">line</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments4-options4-content4-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">one split <span class="se">\\</span>\nline</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments5-options5-content5-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">mixed split <span class="se">\\</span>\nline</span>\n<span class="prompt1">second</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments6-options6-content6-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "% ";\n}\n</style><span class="prompt1">other prompt</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments7-options7-content7-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "% ";\n}\n</style><span class="prompt1">other prompt opt</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments8-options8-content8-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "C:\\\\> ";\n}\n</style><span class="prompt1">batch</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments9-options9-content9-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "PS C:\\\\> ";\n}\n</style><span class="prompt1"><span class="n">powershell</span></span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments10-options10-content10-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\n</style><span class="prompt1">lexer <span class="m">1</span> <span class="m">2</span> <span class="s2">&quot;tree&quot;</span></span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
FAILED tests/test_sphinx_prompt.py::test[arguments11-options11-content11-<div class="highlight-default notranslate"><div class="highlight"><pre><style type="text/css">\nspan.prompt1:before {\n  content: "$ ";\n}\nspan.prompt2:before {\n  content: "# ";\n}\n</style><span class="prompt1">user</span>\n<span class="prompt2">root</span>\n</pre></div></div>] - AttributeError: 'NoneType' object has no attribute 'reporter'
============================================================================ 12 failed in 0.38s ============================================================================

Here is list of installed modules in build env

Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
appdirs                       1.4.4
attrs                         22.2.0
Babel                         2.11.0
Brlapi                        0.8.3
build                         0.9.0
charset-normalizer            3.0.1
contourpy                     1.0.6
cssselect                     1.1.0
cycler                        0.11.0
distro                        1.8.0
dnspython                     2.2.1
docutils                      0.19
exceptiongroup                1.0.0
extras                        1.0.0
fixtures                      4.0.0
fonttools                     4.38.0
gpg                           1.18.0-unknown
idna                          3.4
imagesize                     1.4.1
importlib-metadata            5.1.0
iniconfig                     1.1.1
Jinja2                        3.1.2
kiwisolver                    1.4.4
libcomps                      0.1.19
louis                         3.24.0
lxml                          4.9.1
MarkupSafe                    2.1.1
matplotlib                    3.6.2
numpy                         1.23.1
olefile                       0.46
packaging                     21.3
pbr                           5.9.0
pep517                        0.13.0
Pillow                        9.3.0
pip                           22.3.1
pluggy                        1.0.0
Pygments                      2.13.0
PyGObject                     3.42.2
pyparsing                     3.0.9
pytest                        7.2.0
python-dateutil               2.8.2
pytz                          2022.4
requests                      2.28.1
rpm                           4.17.0
scour                         0.38.2
setuptools                    65.6.3
six                           1.16.0
snowballstemmer               2.2.0
Sphinx                        5.3.0
sphinxcontrib-applehelp       1.0.2.dev20221204
sphinxcontrib-devhelp         1.0.2.dev20221204
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20221204
sphinxcontrib-qthelp          1.0.3.dev20221204
sphinxcontrib-serializinghtml 1.1.5
testtools                     2.5.0
tomli                         2.0.1
urllib3                       1.26.12
wheel                         0.38.4
zipp                          3.11.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.