Created
June 28, 2024 06:58
-
-
Save micwoj92/564560e59eabe68f691ac8d646988fe0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================== | |
platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 | |
rootdir: /build/blockdiag/src/blockdiag-3.1.0 | |
plugins: typeguard-4.3.0 | |
collected 714 items | |
_build/lib/blockdiag/tests/rst/test_base_directives.py ........ [ 1%] | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py FFF.F.FFFFFF [ 2%] | |
.FFFFFFFFFFFFFFF...FFFFFFFFFFFFF.F [ 7%] | |
_build/lib/blockdiag/tests/test_boot_params.py FFFF......F......FFFFFF.F [ 11%] | |
FF. [ 11%] | |
_build/lib/blockdiag/tests/test_builder.py ......F............... [ 14%] | |
_build/lib/blockdiag/tests/test_builder_edge.py F.................. [ 17%] | |
_build/lib/blockdiag/tests/test_builder_errors.py .................... [ 20%] | |
_build/lib/blockdiag/tests/test_builder_group.py ....................... [ 23%] | |
........... [ 24%] | |
_build/lib/blockdiag/tests/test_builder_node.py .........FFFF... [ 27%] | |
_build/lib/blockdiag/tests/test_builder_separate.py .. [ 27%] | |
_build/lib/blockdiag/tests/test_command.py FF [ 27%] | |
_build/lib/blockdiag/tests/test_generate_diagram.py F...F...F...F...F... [ 30%] | |
F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F... [ 40%] | |
F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F... [ 50%] | |
F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F... [ 60%] | |
F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F... [ 70%] | |
F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F... [ 80%] | |
F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F...F... [ 90%] | |
F...F...F...F...F...F... [ 94%] | |
_build/lib/blockdiag/tests/test_imagedraw_textfolder.py ... [ 94%] | |
_build/lib/blockdiag/tests/test_imagedraw_utils.py ..... [ 95%] | |
_build/lib/blockdiag/tests/test_parser.py ........ [ 96%] | |
_build/lib/blockdiag/tests/test_utils.py ... [ 96%] | |
_build/lib/blockdiag/tests/test_utils_fontmap.py ...................... [100%] | |
=================================== FAILURES =================================== | |
_____________________ TestRstDirectives.test_align_option1 _____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_align_option1> | |
def test_align_option1(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :align: left\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:298: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpcpwbvdzu/blockdiag-7018f4d6c743ba9390f9cf0f84bd2ee2d015cac4.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea75724a0c0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____________________ TestRstDirectives.test_align_option2 _____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_align_option2> | |
def test_align_option2(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :align: center\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:310: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpfl4eg1qu/blockdiag-cc2f76cd33632b086a8f135ed44723d51cc336d7.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756cd1790>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____________________ TestRstDirectives.test_align_option3 _____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_align_option3> | |
def test_align_option3(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :align: right\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:322: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpfv7ny1mk/blockdiag-694eebe6823b3e376a7eea6532a0bf3c74738123.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea7593f3d10>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______________________ TestRstDirectives.test_alt_option _______________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_alt_option> | |
def test_alt_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :alt: hello world\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:286: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpbnunw3r0/blockdiag-5fa6474e943ca5545feb6c64d006ddc728b021c7.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756cd98e0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________________ TestRstDirectives.test_call_with_brace ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_call_with_brace> | |
def test_call_with_brace(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
"\n" | |
" {" | |
" A -> B" | |
" }") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:265: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp_4o6qva1/blockdiag-aaafb33e63d314b2e07033df9589d727b923dec2.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d54050>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
__________________ TestRstDirectives.test_call_without_braces __________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_call_without_braces> | |
def test_call_without_braces(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:275: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpqxfxhx7k/blockdiag-bee596d1c8658b0a803259bedcacd7ab98d4e82d.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d542c0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________________ TestRstDirectives.test_caption_option _____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_caption_option> | |
def test_caption_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :caption: hello world\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:349: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpxp2emdvl/blockdiag-b8aa0812f8a31e2d45800bb3634b821b305d4715.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d55340>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________________ TestRstDirectives.test_caption_option2 ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_caption_option2> | |
def test_caption_option2(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :caption: **hello** *world*\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:365: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpbkxeezpg/blockdiag-d03c982f6413c538fe71353b6fda7a63421b97ed.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d55490>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________ TestRstDirectives.test_caption_option_and_align_option ____________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_caption_option_and_align_option> | |
def test_caption_option_and_align_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :align: left\n" | |
" :caption: hello world\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:386: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpa248e6n8/blockdiag-46c2941381d9a85dc82afe2008a6012b67f6923c.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea75724bb60>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____________________ TestRstDirectives.test_class_option ______________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_class_option> | |
def test_class_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :class: bar%\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:466: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpdslv8kby/blockdiag-be0410c52e242aa1bd8abcd20c6e48ceebe19195.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756cc0b90>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
___________________ TestRstDirectives.test_desctable_option ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option> | |
def test_desctable_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A [description = foo]" | |
" B [description = bar]" | |
" group { A }") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:516: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp1dq_7bo_/blockdiag-4cd45efb8b9b5230c1e7262d9c748fcadc072fc3.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756c8a2d0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______________ TestRstDirectives.test_desctable_option_for_edges _______________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_for_edges> | |
def test_desctable_option_for_edges(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A -> B [description = \"foo\"]" | |
" C -> D [description = \"bar\"]" | |
" C [label = \"label_C\"]" | |
" D [label = \"label_D\"]") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:764: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmplkxg3j50/blockdiag-df202f388721e5d7be707066f43caa08a030c5f7.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d55910>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_________ TestRstDirectives.test_desctable_option_for_nodes_and_edges __________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_for_nodes_and_edges> | |
def test_desctable_option_for_nodes_and_edges(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A -> B [description = \"foo\"]" | |
" C -> D [description = \"bar\"]" | |
" C [label = \"label_C\", description = foo]" | |
" D [label = \"label_D\"]") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:807: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpipbk42ew/blockdiag-8f69546cb8ed157314b4300e671626af71d197de.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea75724b8c0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
___________ TestRstDirectives.test_desctable_option_using_node_group ___________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_using_node_group> | |
def test_desctable_option_using_node_group(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A [description = foo]" | |
" B [description = bar]" | |
" group { A }") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:564: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpb8o3z3li/blockdiag-8ef59f99295f55ebf2a694a512c9083928b9a7bf.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d55e50>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________ TestRstDirectives.test_desctable_option_with_numbered _____________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_with_numbered> | |
def test_desctable_option_with_numbered(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A [numbered = 2]" | |
" B [numbered = 1]") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:682: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpz1itqn_5/blockdiag-768666dee06b9dd00556ecaf8ebf333c911993cb.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756cc39e0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____ TestRstDirectives.test_desctable_option_with_numbered_and_description _____ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_with_numbered_and_description> | |
def test_desctable_option_with_numbered_and_description(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A [description = foo, numbered = 2]" | |
" B [description = bar, numbered = 1]") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:719: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpe73eoesv/blockdiag-09ac154119d246165a318891243c1cba953caf05.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d537a0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
__________ TestRstDirectives.test_desctable_option_with_rest_markups ___________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_with_rest_markups> | |
def test_desctable_option_with_rest_markups(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A [description = \"foo *bar* **baz**\"]" | |
" B [description = \"**foo** *bar* baz\"]") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:624: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmphuwb3_38/blockdiag-57dee590d73d3cb25f83f8bbf65e32e8bcb4849e.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756c89220>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_________ TestRstDirectives.test_desctable_option_without_description __________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_desctable_option_without_description> | |
def test_desctable_option_without_description(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :desctable:\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:552: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpj99xqls9/blockdiag-a074802b5eb24c85aea4286da3db3c5149cc0df2.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d57260>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________________ TestRstDirectives.test_figclass_option ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_figclass_option> | |
def test_figclass_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :caption: hello world\n" | |
" :figclass: baz\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:503: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpi9z0ejvw/blockdiag-18005f74f3c750b7210bdc6526c040dc8bd77e70.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d32990>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
___________________ TestRstDirectives.test_figwidth_option1 ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_figwidth_option1> | |
def test_figwidth_option1(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :caption: hello world\n" | |
" :figwidth: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:479: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmppzcbnr02/blockdiag-0002d01fefaadf7816d88f791583259dc97a906b.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d2be30>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
___________________ TestRstDirectives.test_figwidth_option2 ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_figwidth_option2> | |
def test_figwidth_option2(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :caption: hello world\n" | |
" :figwidth: image\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:491: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp0upkhmok/blockdiag-9093efd40e58b30ab8d00a8f75685c3fb38b1a35.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d5bc20>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____________________ TestRstDirectives.test_height_option _____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_height_option> | |
def test_height_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :height: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:430: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp2qvvaozc/blockdiag-6d6c11b4c84e63a1fef84ba33cf043512a18da2c.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d566f0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
____________________ TestRstDirectives.test_maxwidth_option ____________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_maxwidth_option> | |
@capture_stderr | |
def test_maxwidth_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :maxwidth: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:405: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmplzk539r6/blockdiag-b59d8929d7fe80dfce9f9761c1c2d7a4627c4a08.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d17e00>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
----------------------------- Captured stdout call ----------------------------- | |
---[ stderr ] --- | |
<string>:1: (WARNING/2) :maxwidth: option is deprecated. Use :width: option. | |
______________________ TestRstDirectives.test_name_option ______________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_name_option> | |
def test_name_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :name: foo%\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:454: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpwm13shhr/blockdiag-4e141b0fea2e49ba1d590db4b4008b7edddefd80.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d1c380>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____________________ TestRstDirectives.test_scale_option ______________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_scale_option> | |
def test_scale_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :scale: 50%\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:442: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp_q9mlmpv/blockdiag-a2b6a521140b5ae0891b3d2a4b421e63f21c3c30.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d1cb60>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_______________ TestRstDirectives.test_setup_inline_svg_is_false _______________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_false> | |
def test_setup_inline_svg_is_false(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, inline_svg=False) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:166: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp52cm6nns/blockdiag-2b70a5bbb156eae13aab0907df2dbef85ac35ccf.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756ce7bf0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_______________ TestRstDirectives.test_setup_inline_svg_is_true ________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true> | |
def test_setup_inline_svg_is_true(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, inline_svg=True) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:152: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:239: in node2image | |
return self.node2image_inline_svg(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:261: in node2image_inline_svg | |
drawer = node.to_drawer('SVG', None, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg', filename = None | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d1b050>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______ TestRstDirectives.test_setup_inline_svg_is_true_and_height_option1 ______ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_and_height_option1> | |
def test_setup_inline_svg_is_true_and_height_option1(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, | |
nodoctype=True, noviewbox=True, inline_svg=True) | |
text = (".. blockdiag::\n" | |
" :height: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:225: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:239: in node2image | |
return self.node2image_inline_svg(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:261: in node2image_inline_svg | |
drawer = node.to_drawer('SVG', None, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg', filename = None | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea7569c82f0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______ TestRstDirectives.test_setup_inline_svg_is_true_and_height_option2 ______ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_and_height_option2> | |
def test_setup_inline_svg_is_true_and_height_option2(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, | |
nodoctype=True, noviewbox=True, inline_svg=True) | |
text = (".. blockdiag::\n" | |
" :height: 10000\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:238: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:239: in node2image | |
return self.node2image_inline_svg(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:261: in node2image_inline_svg | |
drawer = node.to_drawer('SVG', None, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg', filename = None | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756ce5250>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_ TestRstDirectives.test_setup_inline_svg_is_true_and_width_and_height_option __ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_and_width_and_height_option> | |
def test_setup_inline_svg_is_true_and_width_and_height_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, | |
nodoctype=True, noviewbox=True, inline_svg=True) | |
text = (".. blockdiag::\n" | |
" :width: 200\n" | |
" :height: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:252: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:239: in node2image | |
return self.node2image_inline_svg(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:261: in node2image_inline_svg | |
drawer = node.to_drawer('SVG', None, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg', filename = None | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d5bad0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______ TestRstDirectives.test_setup_inline_svg_is_true_and_width_option1 _______ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_and_width_option1> | |
def test_setup_inline_svg_is_true_and_width_option1(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, | |
nodoctype=True, noviewbox=True, inline_svg=True) | |
text = (".. blockdiag::\n" | |
" :width: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:199: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:239: in node2image | |
return self.node2image_inline_svg(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:261: in node2image_inline_svg | |
drawer = node.to_drawer('SVG', None, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg', filename = None | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea7572851f0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______ TestRstDirectives.test_setup_inline_svg_is_true_and_width_option2 _______ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_and_width_option2> | |
def test_setup_inline_svg_is_true_and_width_option2(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, | |
nodoctype=True, noviewbox=True, inline_svg=True) | |
text = (".. blockdiag::\n" | |
" :width: 10000\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:212: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:239: in node2image | |
return self.node2image_inline_svg(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:261: in node2image_inline_svg | |
drawer = node.to_drawer('SVG', None, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg', filename = None | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea757225ee0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____ TestRstDirectives.test_setup_inline_svg_is_true_but_format_isnt_svg ______ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_but_format_isnt_svg> | |
@with_pil | |
def test_setup_inline_svg_is_true_but_format_isnt_svg(self): | |
directives.setup(format='PNG', outputdir=self.tmpdir, inline_svg=True) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:177: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'png' | |
filename = '/tmp/tmpfj2c9f6i/blockdiag-0e4ce52553cd817771e950324b9e67f08cbcfae8.png' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d0ce00>, 'fontpath': None, ...} | |
msg = 'failed to load png image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load png image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_______ TestRstDirectives.test_setup_inline_svg_is_true_with_multibytes ________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_inline_svg_is_true_with_multibytes> | |
def test_setup_inline_svg_is_true_with_multibytes(self): | |
# multibyte characters aren't support for default font, set a own font | |
directives.setup(format='SVG', outputdir=self.tmpdir, | |
fontpath=get_fontpath(TESTDIR)) | |
text = (".. blockdiag::\n" | |
"\n" | |
" あ -> い") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:188: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpwup2drkc/blockdiag-4952235834a9757be9198ef66da6c2977f69b3ca.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea757285dc0>, 'fontpath': '/build/blockdiag/src/blockdiag-3.1.0/_build/lib/blockdiag/tests/VLGothic/VL-Gothic-Regular.ttf', ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_______________ TestRstDirectives.test_setup_nodoctype_is_false ________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_nodoctype_is_false> | |
def test_setup_nodoctype_is_false(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, nodoctype=False) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:118: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpfhalqvl6/blockdiag-299418735752d146f33888c23da0479a84f527fc.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d14560>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
________________ TestRstDirectives.test_setup_nodoctype_is_true ________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_nodoctype_is_true> | |
def test_setup_nodoctype_is_true(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, nodoctype=True) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:107: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmp_om9f1pp/blockdiag-200dd86f0c08c94e668b6c4b140be5ab8e4712d4.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756c8b080>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_______________ TestRstDirectives.test_setup_noviewbox_is_false ________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_noviewbox_is_false> | |
def test_setup_noviewbox_is_false(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, noviewbox=False) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:141: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpwcz7sn3l/blockdiag-f4e501448c4f0b24b9435774072e4917f371b0fe.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea757287e30>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
________________ TestRstDirectives.test_setup_noviewbox_is_true ________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_setup_noviewbox_is_true> | |
def test_setup_noviewbox_is_true(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir, noviewbox=True) | |
text = (".. blockdiag::\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:130: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpyxm5g_ik/blockdiag-4963405f0532b45e9be03bd1734e65d4a5f20597.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756c896a0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
_____________________ TestRstDirectives.test_width_option ______________________ | |
self = <blockdiag.tests.rst.test_blockdiag_directives.TestRstDirectives testMethod=test_width_option> | |
def test_width_option(self): | |
directives.setup(format='SVG', outputdir=self.tmpdir) | |
text = (".. blockdiag::\n" | |
" :width: 100\n" | |
"\n" | |
" A -> B") | |
> doctree = publish_doctree(text) | |
_build/lib/blockdiag/tests/rst/test_blockdiag_directives.py:418: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
/usr/lib/python3.12/site-packages/docutils/core.py:524: in publish_doctree | |
_output, publisher = publish_programmatically( | |
/usr/lib/python3.12/site-packages/docutils/core.py:722: in publish_programmatically | |
output = publisher.publish(enable_exit_status=enable_exit_status) | |
/usr/lib/python3.12/site-packages/docutils/core.py:234: in publish | |
self.document = self.reader.read(self.source, self.parser, | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:70: in read | |
self.parse() | |
/usr/lib/python3.12/site-packages/docutils/readers/__init__.py:76: in parse | |
self.parser.parse(self.input, document) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/__init__.py:184: in parse | |
self.statemachine.run(inputlines, document, inliner=self.inliner) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:169: in run | |
results = StateMachineWS.run(self, input_lines, input_offset, | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:233: in run | |
context, next_state, result = self.check_line( | |
/usr/lib/python3.12/site-packages/docutils/statemachine.py:445: in check_line | |
return method(match, context, next_state) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2357: in explicit_markup | |
nodelist, blank_finish = self.explicit_construct(match) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2369: in explicit_construct | |
return method(self, expmatch) | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2106: in directive | |
return self.run_directive( | |
/usr/lib/python3.12/site-packages/docutils/parsers/rst/states.py:2156: in run_directive | |
result = directive_instance.run() | |
_build/lib/blockdiag/utils/rst/directives.py:54: in decorator | |
return fn(*args) | |
_build/lib/blockdiag/utils/rst/directives.py:178: in run | |
results[0] = self.node2image(node, diagram) | |
_build/lib/blockdiag/utils/rst/directives.py:244: in node2image | |
drawer = node.to_drawer(_format, filename, fontmap, | |
_build/lib/blockdiag/utils/rst/nodes.py:42: in to_drawer | |
return self.processor.drawer.DiagramDraw(image_format, diagram, | |
_build/lib/blockdiag/drawer.py:40: in __init__ | |
self.drawer = imagedraw.create(self.format, self.filename, | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'svg' | |
filename = '/tmp/tmpbovh7lv4/blockdiag-1213e81897f39af94c6d0d3d8cba101ab2fd17cb.svg' | |
kwargs = {'antialias': False, 'filters': ['linejump'], 'fontmap': <blockdiag.utils.fontmap.FontMap object at 0x6ea756d30ad0>, 'fontpath': None, ...} | |
msg = 'failed to load svg image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load svg image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
______________________ TestBootParams.test_config_option _______________________ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756d54530> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
> imagedraw.create(self.options.type, None, debug=self.options.debug) | |
_build/lib/blockdiag/utils/bootstrap.py:196: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'png', filename = None, kwargs = {'debug': None} | |
msg = 'failed to load png image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load png image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
During handling of the above exception, another exception occurred: | |
self = <blockdiag.tests.test_boot_params.TestBootParams testMethod=test_config_option> | |
def test_config_option(self): | |
try: | |
tmp = tempfile.mkstemp() | |
> self.parser.parse(['-c', tmp[1], 'input.diag']) | |
_build/lib/blockdiag/tests/test_boot_params.py:92: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_build/lib/blockdiag/utils/bootstrap.py:139: in parse | |
self.validate() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756d54530> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
imagedraw.create(self.options.type, None, debug=self.options.debug) | |
except Exception: | |
msg = "unknown format: %s" % self.options.type | |
> raise RuntimeError(msg) | |
E RuntimeError: unknown format: PNG | |
_build/lib/blockdiag/utils/bootstrap.py:199: RuntimeError | |
__________________ TestBootParams.test_config_option_fontpath __________________ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756c88260> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
> imagedraw.create(self.options.type, None, debug=self.options.debug) | |
_build/lib/blockdiag/utils/bootstrap.py:196: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'png', filename = None, kwargs = {'debug': None} | |
msg = 'failed to load png image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load png image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
During handling of the above exception, another exception occurred: | |
self = <blockdiag.tests.test_boot_params.TestBootParams testMethod=test_config_option_fontpath> | |
def test_config_option_fontpath(self): | |
try: | |
tmp = tempfile.mkstemp() | |
config = "[blockdiag]\nfontpath = /path/to/font\n" | |
io.open(tmp[0], 'wt', encoding='utf-8-sig').write(config) | |
> options = self.parser.parse(['-c', tmp[1], 'input.diag']) | |
_build/lib/blockdiag/tests/test_boot_params.py:127: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_build/lib/blockdiag/utils/bootstrap.py:139: in parse | |
self.validate() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756c88260> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
imagedraw.create(self.options.type, None, debug=self.options.debug) | |
except Exception: | |
msg = "unknown format: %s" % self.options.type | |
> raise RuntimeError(msg) | |
E RuntimeError: unknown format: PNG | |
_build/lib/blockdiag/utils/bootstrap.py:199: RuntimeError | |
__________________ TestBootParams.test_config_option_with_bom __________________ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756d543e0> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
> imagedraw.create(self.options.type, None, debug=self.options.debug) | |
_build/lib/blockdiag/utils/bootstrap.py:196: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'png', filename = None, kwargs = {'debug': None} | |
msg = 'failed to load png image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load png image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
During handling of the above exception, another exception occurred: | |
self = <blockdiag.tests.test_boot_params.TestBootParams testMethod=test_config_option_with_bom> | |
def test_config_option_with_bom(self): | |
try: | |
tmp = tempfile.mkstemp() | |
fp = io.open(tmp[0], 'wt', encoding='utf-8-sig') | |
fp.write("[blockdiag]\n") | |
fp.close() | |
> self.parser.parse(['-c', tmp[1], 'input.diag']) | |
_build/lib/blockdiag/tests/test_boot_params.py:104: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_build/lib/blockdiag/utils/bootstrap.py:139: in parse | |
self.validate() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756d543e0> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
imagedraw.create(self.options.type, None, debug=self.options.debug) | |
except Exception: | |
msg = "unknown format: %s" % self.options.type | |
> raise RuntimeError(msg) | |
E RuntimeError: unknown format: PNG | |
_build/lib/blockdiag/utils/bootstrap.py:199: RuntimeError | |
_________________ TestBootParams.test_exist_font_config_option _________________ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756d1c500> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
> imagedraw.create(self.options.type, None, debug=self.options.debug) | |
_build/lib/blockdiag/utils/bootstrap.py:196: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'png', filename = None, kwargs = {'debug': None} | |
msg = 'failed to load png image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load png image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
During handling of the above exception, another exception occurred: | |
self = <blockdiag.tests.test_boot_params.TestBootParams testMethod=test_exist_font_config_option> | |
def test_exist_font_config_option(self): | |
try: | |
fd, path = tempfile.mkstemp() | |
os.close(fd) | |
> options = self.parser.parse(['-f', path, 'input.diag']) | |
_build/lib/blockdiag/tests/test_boot_params.py:137: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_build/lib/blockdiag/utils/bootstrap.py:139: in parse | |
self.validate() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756d1c500> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
imagedraw.create(self.options.type, None, debug=self.options.debug) | |
except Exception: | |
msg = "unknown format: %s" % self.options.type | |
> raise RuntimeError(msg) | |
E RuntimeError: unknown format: PNG | |
_build/lib/blockdiag/utils/bootstrap.py:199: RuntimeError | |
______________________ TestBootParams.test_no_size_option ______________________ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756ce4e00> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
> imagedraw.create(self.options.type, None, debug=self.options.debug) | |
_build/lib/blockdiag/utils/bootstrap.py:196: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_format = 'png', filename = None, kwargs = {'debug': None} | |
msg = 'failed to load png image driver' | |
def create(_format, filename, **kwargs): | |
if len(drawers) == 0: | |
init_imagedrawers(debug=kwargs.get('debug')) | |
_format = _format.lower() | |
if _format in drawers: | |
drawer = drawers[_format](filename, **kwargs) | |
else: | |
msg = 'failed to load %s image driver' % _format | |
> raise RuntimeError(msg) | |
E RuntimeError: failed to load png image driver | |
_build/lib/blockdiag/imagedraw/__init__.py:47: RuntimeError | |
During handling of the above exception, another exception occurred: | |
self = <blockdiag.tests.test_boot_params.TestBootParams testMethod=test_no_size_option> | |
def test_no_size_option(self): | |
> options = self.parser.parse(['input.diag']) | |
_build/lib/blockdiag/tests/test_boot_params.py:158: | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
_build/lib/blockdiag/utils/bootstrap.py:139: in parse | |
self.validate() | |
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756ce4e00> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
imagedraw.create(self.options.type, None, debug=self.options.debug) | |
except Exception: | |
msg = "unknown format: %s" % self.options.type | |
> raise RuntimeError(msg) | |
E RuntimeError: unknown format: PNG | |
_build/lib/blockdiag/utils/bootstrap.py:199: RuntimeError | |
________________ TestBootParams.test_png_notransparency_option _________________ | |
self = <blockdiag.command.BlockdiagOptions object at 0x6ea756ce6c90> | |
def validate(self): | |
if len(self.args) == 0: | |
self.parser.print_help() | |
sys.exit(0) | |
self.options.input = self.args.pop(0) | |
if self.options.output: | |
pass | |
elif self.options.output == '-': | |
self.options.output = None | |
else: | |
if self.options.input == '-': | |
self.options.output = None | |
else: | |
basename = os.path.splitext(self.options.input)[0] | |
ext = '.%s' % self.options.type.lower() | |
self.options.output = basename + ext | |
self.options.type = self.options.type.upper() | |
try: | |
> imagedraw.create(self.options.type, None, debug=self.options.debug) | |