Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.34.0: pytest is failing in some units #872

Closed
kloczek opened this issue Dec 5, 2022 · 6 comments
Closed

4.34.0: pytest is failing in some units #872

kloczek opened this issue Dec 5, 2022 · 6 comments
Assignees
Labels
test Unit tests, acceptance tests

Comments

@kloczek
Copy link

kloczek commented Dec 5, 2022

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-breathe-4.34.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.15, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/breathe-4.34.0
collected 21 items

tests/test_renderer.py ..FFFFFFFFFFFFF...                                                                                                                            [ 85%]
tests/test_utils.py ...                                                                                                                                              [100%]

================================================================================= FAILURES =================================================================================
_____________________________________________________________________________ test_render_func _____________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_func(app):
        member_def = WrappedMemberDef(
            kind="function",
            definition="void foo",
            type_="void",
            name="foo",
            argsstring="(int)",
            virt="non-virtual",
            param=[
                WrappedParam(type_=WrappedLinkedText(content_=[WrappedMixedContainer(value="int")]))
            ],
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:321:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2489: in dispatch_memberdef
    return self.visit_function(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:1981: in visit_function
    nodes = self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac9951460>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

___________________________________________________________________________ test_render_typedef ____________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_typedef(app):
        member_def = WrappedMemberDef(
            kind="typedef", definition="typedef int foo", type_="int", name="foo"
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:344:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2493: in dispatch_memberdef
    return self.visit_typedef(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2112: in visit_typedef
    return self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac992c460>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

__________________________________________________________________________ test_render_c_typedef ___________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_c_typedef(app):
        member_def = WrappedMemberDef(
            kind="typedef", definition="typedef unsigned int bar", type_="unsigned int", name="bar"
        )
>       signature = find_node(render(app, member_def, domain="c"), "desc_signature")

tests/test_renderer.py:352:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2493: in dispatch_memberdef
    return self.visit_typedef(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2112: in visit_typedef
    return self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/c.py:3250: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7aca033d00>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

______________________________________________________________________ test_render_c_function_typedef ______________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_c_function_typedef(app):
        member_def = WrappedMemberDef(
            kind="typedef",
            definition="typedef void* (*voidFuncPtr)(float, int)",
            type_="void* (*",
            name="voidFuncPtr",
            argsstring=")(float, int)",
        )
>       signature = find_node(render(app, member_def, domain="c"), "desc_signature")

tests/test_renderer.py:364:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2493: in dispatch_memberdef
    return self.visit_typedef(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2112: in visit_typedef
    return self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/c.py:3250: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac9559670>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

_________________________________________________________________________ test_render_using_alias __________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_using_alias(app):
        member_def = WrappedMemberDef(
            kind="typedef", definition="using foo = int", type_="int", name="foo"
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:381:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2493: in dispatch_memberdef
    return self.visit_typedef(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2112: in visit_typedef
    return self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac9092520>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

__________________________________________________________________________ test_render_const_func __________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_const_func(app):
        member_def = WrappedMemberDef(
            kind="function",
            definition="void f",
            type_="void",
            name="f",
            argsstring="() const",
            virt="non-virtual",
            const="yes",
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:395:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2489: in dispatch_memberdef
    return self.visit_function(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:1981: in visit_function
    nodes = self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac90200d0>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

_________________________________________________________________________ test_render_lvalue_func __________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_lvalue_func(app):
        member_def = WrappedMemberDef(
            kind="function",
            definition="void f",
            type_="void",
            name="f",
            argsstring="() &",
            virt="non-virtual",
            refqual="lvalue",
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:409:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2489: in dispatch_memberdef
    return self.visit_function(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:1981: in visit_function
    nodes = self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac95323d0>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

_________________________________________________________________________ test_render_rvalue_func __________________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_rvalue_func(app):
        member_def = WrappedMemberDef(
            kind="function",
            definition="void f",
            type_="void",
            name="f",
            argsstring="() &&",
            virt="non-virtual",
            refqual="rvalue",
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:423:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2489: in dispatch_memberdef
    return self.visit_function(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:1981: in visit_function
    nodes = self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac8947c70>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

______________________________________________________________________ test_render_const_lvalue_func _______________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_const_lvalue_func(app):
        member_def = WrappedMemberDef(
            kind="function",
            definition="void f",
            type_="void",
            name="f",
            argsstring="() const &",
            virt="non-virtual",
            const="yes",
            refqual="lvalue",
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:438:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2489: in dispatch_memberdef
    return self.visit_function(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:1981: in visit_function
    nodes = self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac896f1f0>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

______________________________________________________________________ test_render_const_rvalue_func _______________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_const_rvalue_func(app):
        member_def = WrappedMemberDef(
            kind="function",
            definition="void f",
            type_="void",
            name="f",
            argsstring="() const &&",
            virt="non-virtual",
            const="yes",
            refqual="rvalue",
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:453:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2489: in dispatch_memberdef
    return self.visit_function(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:1981: in visit_function
    nodes = self.handle_declaration(node, declaration)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac8a99a30>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

_____________________________________________________________________ test_render_variable_initializer _____________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_variable_initializer(app):
        member_def = WrappedMemberDef(
            kind="variable",
            definition="const int EOF",
            type_="const int",
            name="EOF",
            initializer=WrappedMixedContainer(value="= -1"),
        )
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:465:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2495: in dispatch_memberdef
    return self.visit_variable(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2175: in visit_variable
    return self.handle_declaration(node, declaration, options=options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/cpp.py:7345: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac8a17130>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

______________________________________________________________________ test_render_define_initializer ______________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_define_initializer(app):
        member_def = WrappedMemberDef(
            kind="define",
            name="MAX_LENGTH",
            initializer=WrappedLinkedText(content_=[WrappedMixedContainer(value="100")]),
        )
        signature_w_initializer = find_node(
>           render(app, member_def, show_define_initializer=True), "desc_signature"
        )

tests/test_renderer.py:476:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2503: in dispatch_memberdef
    return self.visit_define(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2058: in visit_define
    return self.handle_declaration(node, declaration, declarator_callback=add_definition)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/c.py:3250: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac8bf0af0>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:

____________________________________________________________________ test_render_define_no_initializer _____________________________________________________________________

app = <SphinxTestApp buildername='html'>

    def test_render_define_no_initializer(app):
        sphinx.addnodes.setup(app)
        member_def = WrappedMemberDef(kind="define", name="USE_MILK")
>       signature = find_node(render(app, member_def), "desc_signature")

tests/test_renderer.py:495:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/test_renderer.py:306: in render
    return renderer.render(member_def)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2602: in render
    result = method(self, node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2503: in dispatch_memberdef
    return self.visit_define(node)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:2058: in visit_define
    return self.handle_declaration(node, declaration, declarator_callback=add_definition)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:667: in handle_declaration
    nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
../../BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib/python3.8/site-packages/breathe/renderer/sphinxrenderer.py:619: in run_directive
    nodes = directive.run()
/usr/lib/python3.8/site-packages/sphinx/domains/c.py:3250: in run
    return super().run()
/usr/lib/python3.8/site-packages/sphinx/directives/__init__.py:263: in run
    nested_parse_with_titles(self.state, self.content, contentnode)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

state = <test_renderer.MockState object at 0x7f7ac8bd4eb0>, content = None, node = <desc_content: >

    def nested_parse_with_titles(state: Any, content: StringList, node: Node) -> str:
        """Version of state.nested_parse() that allows titles and does not require
        titles to have the same decoration as the calling document.

        This is useful when the parsed content comes from a completely different
        context, such as docstrings.
        """
        # hack around title style bookkeeping
>       surrounding_title_styles = state.memo.title_styles
E       AttributeError: 'MockState' object has no attribute 'memo'

/usr/lib/python3.8/site-packages/sphinx/util/nodes.py:335: AttributeError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-585/root
# outdir: /tmp/pytest-of-tkloczko/pytest-585/root/_build/html
# status:
Running Sphinx v5.3.0

# warning:
WARNING: node class 'toctree' is already registered, its visitors will be overridden
WARNING: node class 'desc' is already registered, its visitors will be overridden
WARNING: node class 'desc_signature' is already registered, its visitors will be overridden
WARNING: node class 'desc_signature_line' is already registered, its visitors will be overridden
WARNING: node class 'desc_content' is already registered, its visitors will be overridden
WARNING: node class 'desc_inline' is already registered, its visitors will be overridden
WARNING: node class 'desc_name' is already registered, its visitors will be overridden
WARNING: node class 'desc_addname' is already registered, its visitors will be overridden
WARNING: node class 'desc_type' is already registered, its visitors will be overridden
WARNING: node class 'desc_returns' is already registered, its visitors will be overridden
WARNING: node class 'desc_parameterlist' is already registered, its visitors will be overridden
WARNING: node class 'desc_parameter' is already registered, its visitors will be overridden
WARNING: node class 'desc_optional' is already registered, its visitors will be overridden
WARNING: node class 'desc_annotation' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_space' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_name' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_operator' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_punctuation' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_keyword' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_keyword_type' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_literal_number' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_literal_string' is already registered, its visitors will be overridden
WARNING: node class 'desc_sig_literal_char' is already registered, its visitors will be overridden
WARNING: node class 'versionmodified' is already registered, its visitors will be overridden
WARNING: node class 'seealso' is already registered, its visitors will be overridden
WARNING: node class 'productionlist' is already registered, its visitors will be overridden
WARNING: node class 'production' is already registered, its visitors will be overridden
WARNING: node class 'index' is already registered, its visitors will be overridden
WARNING: node class 'centered' is already registered, its visitors will be overridden
WARNING: node class 'acks' is already registered, its visitors will be overridden
WARNING: node class 'hlist' is already registered, its visitors will be overridden
WARNING: node class 'hlistcol' is already registered, its visitors will be overridden
WARNING: node class 'compact_paragraph' is already registered, its visitors will be overridden
WARNING: node class 'glossary' is already registered, its visitors will be overridden
WARNING: node class 'only' is already registered, its visitors will be overridden
WARNING: node class 'start_of_file' is already registered, its visitors will be overridden
WARNING: node class 'highlightlang' is already registered, its visitors will be overridden
WARNING: node class 'tabular_col_spec' is already registered, its visitors will be overridden
WARNING: node class 'pending_xref' is already registered, its visitors will be overridden
WARNING: node class 'number_reference' is already registered, its visitors will be overridden
WARNING: node class 'download_reference' is already registered, its visitors will be overridden
WARNING: node class 'literal_emphasis' is already registered, its visitors will be overridden
WARNING: node class 'literal_strong' is already registered, its visitors will be overridden
WARNING: node class 'manpage' is already registered, its visitors will be overridden

============================================================================= warnings summary =============================================================================
tests/test_renderer.py: 17 warnings
  /home/tkloczko/rpmbuild/BUILD/breathe-4.34.0/tests/test_renderer.py:122: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
    settings = frontend.OptionParser(components=(parsers.rst.Parser,)).get_default_values()

tests/test_renderer.py: 1156 warnings
  /usr/lib64/python3.8/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
    option = self.option_class(*args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
FAILED tests/test_renderer.py::test_render_func - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_typedef - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_c_typedef - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_c_function_typedef - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_using_alias - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_const_func - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_lvalue_func - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_rvalue_func - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_const_lvalue_func - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_const_rvalue_func - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_variable_initializer - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_define_initializer - AttributeError: 'MockState' object has no attribute 'memo'
FAILED tests/test_renderer.py::test_render_define_no_initializer - AttributeError: 'MockState' object has no attribute 'memo'
=============================================================== 13 failed, 8 passed, 1173 warnings in 5.53s ================================================================

Here is list of installed modules in build env

Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
appdirs                       1.4.4
asn1crypto                    1.5.1
attrs                         22.1.0
Babel                         2.11.0
bcrypt                        3.2.2
Brlapi                        0.8.3
build                         0.9.0
cffi                          1.15.1
charset-normalizer            3.0.1
contourpy                     1.0.6
cryptography                  38.0.4
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.17.1-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.23.0
lxml                          4.9.1
MarkupSafe                    2.1.1
matplotlib                    3.6.2
mypy                          0.990
mypy-extensions               0.4.3
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
ply                           3.11
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycparser                     2.21
Pygments                      2.13.0
PyGObject                     3.42.2
pyparsing                     3.0.9
pytest                        7.2.0
python-dateutil               2.8.2
pytz                          2022.4
PyYAML                        6.0
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
tpm2-pkcs11-tools             1.33.7
tpm2-pytss                    1.1.0
typing_extensions             4.4.0
urllib3                       1.26.12
wheel                         0.38.4
zipp                          3.11.0
@mgorny
Copy link
Contributor

mgorny commented Dec 23, 2022

@kloczek, de3504c has a fix.

A new release would be helpful though.

@michaeljones
Copy link
Collaborator

Thanks for figuring out that there is already a fix in the repo.

@vermeeren - are you in position to do a release at some point soon?

@kloczek
Copy link
Author

kloczek commented Dec 25, 2022

Just tested that commit and indeed it fixes fails in some units

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-breathe-4.34.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-breathe-4.34.0-4.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/breathe-4.34.0
collected 21 items

tests/test_renderer.py ..................                                                                                                                            [ 85%]
tests/test_utils.py ...                                                                                                                                              [100%]

============================================================================= warnings summary =============================================================================
tests/test_renderer.py: 18 warnings
  /home/tkloczko/rpmbuild/BUILD/breathe-4.34.0/tests/test_renderer.py:128: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
    settings = frontend.OptionParser(components=(parsers.rst.Parser,)).get_default_values()

tests/test_renderer.py: 1224 warnings
  /usr/lib64/python3.8/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
    option = self.option_class(*args, **kwargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================================== 21 passed, 1242 warnings in 1.19s =====================================================================

Thank you 👍

@vermeeren
Copy link
Collaborator

@vermeeren - are you in position to do a release at some point soon?

@michaeljones Apologies for the delays recently. Checking quick today I do notice the CI is failing which is typically something I'd like to see passing before making a release. I'll try to check the remainder of notifications within a few days and if it the CI is green I'll fix a release.

If there's anything specific you know of feel free to let me know anytime.

Cheers

@michaeljones
Copy link
Collaborator

Fair point. I'll try to poke around and get it into shape. My enthusiasm comes and goes but I have a bit of energy for it at the moment.

@vermeeren vermeeren self-assigned this Apr 19, 2023
@vermeeren vermeeren added the test Unit tests, acceptance tests label Apr 19, 2023
@vermeeren
Copy link
Collaborator

This was fixed by #865 and a release v4.35.0 has been made quite a while ago. Thanks to all for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Unit tests, acceptance tests
Projects
None yet
Development

No branches or pull requests

4 participants