-"""\r
-Tests of large and/or expensive graphs.\r
-"""\r
-\r
-import os\r
-from pathlib import Path\r
-import platform\r
-import subprocess\r
-import pytest\r
-\r
-@pytest.mark.skipif(platform.system() == "Windows" and\r
- platform.architecture()[0] == "32bit",\r
- reason="https://gitlab.com/graphviz/graphviz/-/issues/1710")\r
-def test_long_chain():\r
- """\r
- This test will fail on 32bit Windows machine if compiled with stack size < 16MB.\r
- long_chain input file generated using code below:\r
- from graphviz import Digraph\r
-\r
- graph = Digraph(format="svg")\r
-\r
- prev = "start"\r
- graph.node("start", label="start")\r
-\r
- for i in range(33000):\r
- new_node = str(i)\r
- graph.node(new_node, label=new_node, shape="rectangle")\r
-\r
- graph.edge(prev, new_node)\r
-\r
- prev = new_node\r
-\r
- graph.render("long_chain")\r
- """\r
- subprocess.check_call([\r
- "dot", "-Tsvg", "-O", os.devnull\r
- ])\r
-\r
-def test_wide_clusters():\r
- """\r
- A simple regression test for https://gitlab.com/graphviz/graphviz/-/issues/2080#\r
- """\r
- subprocess.check_call([\r
- "dot", "-Tsvg", "-O", os.devnull, Path(__file__).parent / "wide_clusters"\r
- ])\r
+"""
+Tests of large and/or expensive graphs.
+"""
+
+import os
+from pathlib import Path
+import platform
+import subprocess
+import pytest
+
+@pytest.mark.skipif(platform.system() == "Windows" and
+ platform.architecture()[0] == "32bit",
+ reason="https://gitlab.com/graphviz/graphviz/-/issues/1710")
+def test_long_chain():
+ """
+ This test will fail on 32bit Windows machine if compiled with stack size < 16MB.
+ long_chain input file generated using code below:
+ from graphviz import Digraph
+
+ graph = Digraph(format="svg")
+
+ prev = "start"
+ graph.node("start", label="start")
+
+ for i in range(33000):
+ new_node = str(i)
+ graph.node(new_node, label=new_node, shape="rectangle")
+
+ graph.edge(prev, new_node)
+
+ prev = new_node
+
+ graph.render("long_chain")
+ """
+ subprocess.check_call([
+ "dot", "-Tsvg", "-O", os.devnull
+ ])
+
+def test_wide_clusters():
+ """
+ A simple regression test for https://gitlab.com/graphviz/graphviz/-/issues/2080#
+ """
+ subprocess.check_call([
+ "dot", "-Tsvg", "-O", os.devnull, Path(__file__).parent / "wide_clusters"
+ ])