Skip to content

Instantly share code, notes, and snippets.

@mweinelt
Created August 1, 2024 14:48
Show Gist options
  • Save mweinelt/1e6a698cf1c5a24ac1467422e996a035 to your computer and use it in GitHub Desktop.
Save mweinelt/1e6a698cf1c5a24ac1467422e996a035 to your computer and use it in GitHub Desktop.
breathe> ============================= test session starts ==============================
breathe> platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0
breathe> rootdir: /build/source
breathe> configfile: pyproject.toml
breathe> collected 21 items
breathe>
breathe> tests/test_renderer.py ..FFFFFFFFFFFFF... [ 85%]
breathe> tests/test_utils.py ... [100%]
breathe>
breathe> =================================== FAILURES ===================================
breathe> _______________________________ test_render_func _______________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_func(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="function",
breathe> definition="void foo",
breathe> type_="void",
breathe> name="foo",
breathe> argsstring="(int)",
breathe> virt="non-virtual",
breathe> param=[
breathe> WrappedParam(type_=WrappedLinkedText(content_=[WrappedMixedContainer(value="int")]))
breathe> ],
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:335:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2511: in dispatch_memberdef
breathe> return self.visit_function(node)
breathe> breathe/renderer/sphinxrenderer.py:2003: in visit_function
breathe> nodes = self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> _____________________________ test_render_typedef ______________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_typedef(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="typedef", definition="typedef int foo", type_="int", name="foo"
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:358:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2515: in dispatch_memberdef
breathe> return self.visit_typedef(node)
breathe> breathe/renderer/sphinxrenderer.py:2134: in visit_typedef
breathe> return self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ____________________________ test_render_c_typedef _____________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_c_typedef(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="typedef", definition="typedef unsigned int bar", type_="unsigned int", name="bar"
breathe> )
breathe> > signature = find_node(render(app, member_def, domain="c"), "desc_signature")
breathe>
breathe> tests/test_renderer.py:366:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2515: in dispatch_memberdef
breathe> return self.visit_typedef(node)
breathe> breathe/renderer/sphinxrenderer.py:2134: in visit_typedef
breathe> return self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/c/__init__.py:219: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ________________________ test_render_c_function_typedef ________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_c_function_typedef(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="typedef",
breathe> definition="typedef void* (*voidFuncPtr)(float, int)",
breathe> type_="void* (*",
breathe> name="voidFuncPtr",
breathe> argsstring=")(float, int)",
breathe> )
breathe> > signature = find_node(render(app, member_def, domain="c"), "desc_signature")
breathe>
breathe> tests/test_renderer.py:378:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2515: in dispatch_memberdef
breathe> return self.visit_typedef(node)
breathe> breathe/renderer/sphinxrenderer.py:2134: in visit_typedef
breathe> return self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/c/__init__.py:219: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ___________________________ test_render_using_alias ____________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_using_alias(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="typedef", definition="using foo = int", type_="int", name="foo"
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:395:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2515: in dispatch_memberdef
breathe> return self.visit_typedef(node)
breathe> breathe/renderer/sphinxrenderer.py:2134: in visit_typedef
breathe> return self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ____________________________ test_render_const_func ____________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_const_func(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="function",
breathe> definition="void f",
breathe> type_="void",
breathe> name="f",
breathe> argsstring="() const",
breathe> virt="non-virtual",
breathe> const="yes",
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:409:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2511: in dispatch_memberdef
breathe> return self.visit_function(node)
breathe> breathe/renderer/sphinxrenderer.py:2003: in visit_function
breathe> nodes = self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ___________________________ test_render_lvalue_func ____________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_lvalue_func(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="function",
breathe> definition="void f",
breathe> type_="void",
breathe> name="f",
breathe> argsstring="() &",
breathe> virt="non-virtual",
breathe> refqual="lvalue",
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:423:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2511: in dispatch_memberdef
breathe> return self.visit_function(node)
breathe> breathe/renderer/sphinxrenderer.py:2003: in visit_function
breathe> nodes = self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ___________________________ test_render_rvalue_func ____________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_rvalue_func(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="function",
breathe> definition="void f",
breathe> type_="void",
breathe> name="f",
breathe> argsstring="() &&",
breathe> virt="non-virtual",
breathe> refqual="rvalue",
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:437:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2511: in dispatch_memberdef
breathe> return self.visit_function(node)
breathe> breathe/renderer/sphinxrenderer.py:2003: in visit_function
breathe> nodes = self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ________________________ test_render_const_lvalue_func _________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_const_lvalue_func(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="function",
breathe> definition="void f",
breathe> type_="void",
breathe> name="f",
breathe> argsstring="() const &",
breathe> virt="non-virtual",
breathe> const="yes",
breathe> refqual="lvalue",
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:452:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2511: in dispatch_memberdef
breathe> return self.visit_function(node)
breathe> breathe/renderer/sphinxrenderer.py:2003: in visit_function
breathe> nodes = self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ________________________ test_render_const_rvalue_func _________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_const_rvalue_func(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="function",
breathe> definition="void f",
breathe> type_="void",
breathe> name="f",
breathe> argsstring="() const &&",
breathe> virt="non-virtual",
breathe> const="yes",
breathe> refqual="rvalue",
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:467:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2511: in dispatch_memberdef
breathe> return self.visit_function(node)
breathe> breathe/renderer/sphinxrenderer.py:2003: in visit_function
breathe> nodes = self.handle_declaration(node, declaration)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> _______________________ test_render_variable_initializer _______________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_variable_initializer(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="variable",
breathe> definition="const int EOF",
breathe> type_="const int",
breathe> name="EOF",
breathe> initializer=WrappedMixedContainer(value="= -1"),
breathe> )
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:479:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2517: in dispatch_memberdef
breathe> return self.visit_variable(node)
breathe> breathe/renderer/sphinxrenderer.py:2197: in visit_variable
breathe> return self.handle_declaration(node, declaration, options=options)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/cpp/__init__.py:319: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ________________________ test_render_define_initializer ________________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_define_initializer(app):
breathe> member_def = WrappedMemberDef(
breathe> kind="define",
breathe> name="MAX_LENGTH",
breathe> initializer=WrappedLinkedText(content_=[WrappedMixedContainer(value="100")]),
breathe> )
breathe> signature_w_initializer = find_node(
breathe> > render(app, member_def, show_define_initializer=True), "desc_signature"
breathe> )
breathe>
breathe> tests/test_renderer.py:490:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2525: in dispatch_memberdef
breathe> return self.visit_define(node)
breathe> breathe/renderer/sphinxrenderer.py:2080: in visit_define
breathe> return self.handle_declaration(node, declaration, declarator_callback=add_definition)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/c/__init__.py:219: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe>
breathe> ______________________ test_render_define_no_initializer _______________________
breathe>
breathe> app = <SphinxTestApp buildername='html'>
breathe>
breathe> def test_render_define_no_initializer(app):
breathe> sphinx.addnodes.setup(app)
breathe> member_def = WrappedMemberDef(kind="define", name="USE_MILK")
breathe> > signature = find_node(render(app, member_def), "desc_signature")
breathe>
breathe> tests/test_renderer.py:509:
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe> tests/test_renderer.py:320: in render
breathe> return renderer.render(member_def)
breathe> breathe/renderer/sphinxrenderer.py:2624: in render
breathe> result = method(self, node)
breathe> breathe/renderer/sphinxrenderer.py:2525: in dispatch_memberdef
breathe> return self.visit_define(node)
breathe> breathe/renderer/sphinxrenderer.py:2080: in visit_define
breathe> return self.handle_declaration(node, declaration, declarator_callback=add_definition)
breathe> breathe/renderer/sphinxrenderer.py:667: in handle_declaration
breathe> nodes_ = self.run_directive(obj_type, declaration, content_callback, options)
breathe> breathe/renderer/sphinxrenderer.py:619: in run_directive
breathe> nodes = directive.run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/domains/c/__init__.py:219: in run
breathe> return super().run()
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/directives/__init__.py:286: in run
breathe> content_children = self.parse_content_to_nodes(allow_section_headings=True)
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/docutils.py:415: in parse_content_to_nodes
breathe> return nested_parse_to_nodes(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:55: in nested_parse_to_nodes
breathe> content = _text_to_string_list(
breathe> /nix/store/mrgm416nanj2ikxvvqr3fzxf42pgvi5h-python3.12-sphinx-7.4.7/lib/python3.12/site-packages/sphinx/util/parsing.py:92: in _text_to_string_list
breathe> content = string2lines(text, tab_width, convert_whitespace=True)
breathe> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
breathe>
breathe> astring = None, tab_width = 8, convert_whitespace = True
breathe> whitespace = re.compile('[\x0b\x0c]')
breathe>
breathe> def string2lines(astring, tab_width=8, convert_whitespace=False,
breathe> whitespace=re.compile('[\v\f]')):
breathe> """
breathe> Return a list of one-line strings with tabs expanded, no newlines, and
breathe> trailing whitespace stripped.
breathe>
breathe> Each tab is expanded with between 1 and `tab_width` spaces, so that the
breathe> next character's index becomes a multiple of `tab_width` (8 by default).
breathe>
breathe> Parameters:
breathe>
breathe> - `astring`: a multi-line string.
breathe> - `tab_width`: the number of columns between tab stops.
breathe> - `convert_whitespace`: convert form feeds and vertical tabs to spaces?
breathe> - `whitespace`: pattern object with the to-be-converted
breathe> whitespace characters (default [\\v\\f]).
breathe> """
breathe> if convert_whitespace:
breathe> > astring = whitespace.sub(' ', astring)
breathe> E TypeError: expected string or bytes-like object, got 'NoneType'
breathe>
breathe> /nix/store/b2wx1x4fa63vymrxjrp5x0j3gy71783d-python3.12-docutils-0.21.2/lib/python3.12/site-packages/docutils/statemachine.py:1506: TypeError
breathe> --------------------------- Captured stdout teardown ---------------------------
breathe> # testroot: root
breathe> # builder: html
breathe> # srcdir: /build/pytest-of-nixbld/pytest-0/root
breathe> # outdir: /build/pytest-of-nixbld/pytest-0/root/_build/html
breathe> # status:
breathe> Running Sphinx v7.4.7
breathe> loading translations [en]... done
breathe>
breathe> # warning:
breathe> WARNING: node class 'toctree' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_signature' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_signature_line' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_content' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_inline' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_name' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_addname' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_type' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_returns' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_parameterlist' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_type_parameter_list' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_parameter' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_type_parameter' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_optional' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_annotation' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_literal_string' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_keyword_type' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_punctuation' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_name' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_literal_number' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_keyword' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_operator' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_space' is already registered, its visitors will be overridden
breathe> WARNING: node class 'desc_sig_literal_char' is already registered, its visitors will be overridden
breathe> WARNING: node class 'versionmodified' is already registered, its visitors will be overridden
breathe> WARNING: node class 'seealso' is already registered, its visitors will be overridden
breathe> WARNING: node class 'productionlist' is already registered, its visitors will be overridden
breathe> WARNING: node class 'production' is already registered, its visitors will be overridden
breathe> WARNING: node class 'index' is already registered, its visitors will be overridden
breathe> WARNING: node class 'centered' is already registered, its visitors will be overridden
breathe> WARNING: node class 'acks' is already registered, its visitors will be overridden
breathe> WARNING: node class 'hlist' is already registered, its visitors will be overridden
breathe> WARNING: node class 'hlistcol' is already registered, its visitors will be overridden
breathe> WARNING: node class 'compact_paragraph' is already registered, its visitors will be overridden
breathe> WARNING: node class 'glossary' is already registered, its visitors will be overridden
breathe> WARNING: node class 'only' is already registered, its visitors will be overridden
breathe> WARNING: node class 'start_of_file' is already registered, its visitors will be overridden
breathe> WARNING: node class 'highlightlang' is already registered, its visitors will be overridden
breathe> WARNING: node class 'tabular_col_spec' is already registered, its visitors will be overridden
breathe> WARNING: node class 'pending_xref' is already registered, its visitors will be overridden
breathe> WARNING: node class 'number_reference' is already registered, its visitors will be overridden
breathe> WARNING: node class 'download_reference' is already registered, its visitors will be overridden
breathe> WARNING: node class 'literal_emphasis' is already registered, its visitors will be overridden
breathe> WARNING: node class 'literal_strong' is already registered, its visitors will be overridden
breathe> WARNING: node class 'manpage' is already registered, its visitors will be overridden
breathe>
breathe> =============================== warnings summary ===============================
breathe> tests/test_renderer.py:26
breathe> /build/source/tests/test_renderer.py:26: RemovedInSphinx90Warning: 'sphinx.testing.path' is deprecated. Use 'os.path' or 'pathlib' instead.
breathe> from sphinx.testing.path import path
breathe>
breathe> tests/test_renderer.py: 17 warnings
breathe> /build/source/tests/test_renderer.py:132: DeprecationWarning: The frontend.OptionParser class will be replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
breathe> settings = frontend.OptionParser(components=(parsers.rst.Parser,)).get_default_values()
breathe>
breathe> tests/test_renderer.py: 1190 warnings
breathe> /nix/store/l014xp1qxdl6gim3zc0jv3mpxhbp346s-python3-3.12.4/lib/python3.12/optparse.py:1000: DeprecationWarning: The frontend.Option class will be removed in Docutils 0.21 or later.
breathe> option = self.option_class(*args, **kwargs)
breathe>
breathe> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
breathe> =========================== short test summary info ============================
breathe> FAILED tests/test_renderer.py::test_render_func - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_typedef - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_c_typedef - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_c_function_typedef - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_using_alias - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_const_func - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_lvalue_func - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_rvalue_func - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_const_lvalue_func - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_const_rvalue_func - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_variable_initializer - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_define_initializer - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> FAILED tests/test_renderer.py::test_render_define_no_initializer - TypeError: expected string or bytes-like object, got 'NoneType'
breathe> ================= 13 failed, 8 passed, 1208 warnings in 12.53s =================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment