-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
When running tox -epy exactly one test fails:
rustworkx/tests/rustworkx_tests/visualization/test_graphviz.py
Lines 120 to 124 in a5178e2
| def test_image_type(self): | |
| graph = rustworkx.directed_gnp_random_graph(50, 0.8) | |
| image = graphviz_draw(graph, image_type="jpg") | |
| self.assertIsInstance(image, PIL.Image.Image) | |
| _save_image(image, "test_graphviz_draw_image_type.jpg") |
Failure occurs already on line 122.
Running a script with copies of lines 121 and 122 produces the same error
traceback
File "/home/lapeyre/qiskit/rustworkx/tests/rustworkx_tests/visualization/test_graphviz.py", line 122, in test_image_type
image = graphviz_draw(graph, image_type="jpg")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lapeyre/qiskit/rustworkx/.tox/py/lib64/python3.11/site-packages/rustworkx/visualization/graphviz.py", line 187, in graphviz_draw
dot_result = subprocess.run(
^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 569, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['dot', '-T', 'jpg']' returned non-zero exit status 1.
versions
rustworkx main Feb 8, 2023 e4170ef
fedora linux
/usr/bin/dot -V => dot - graphviz version 5.0.0 (0)
Python 3.11.0
RETWORKX_TEST_PRESERVE_IMAGES=1
Metadata
Metadata
Assignees
Labels
No labels