import subprocess\r
import pytest\r
\r
-class TestLargeGraphs():\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(self):\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
+@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
+ graph = Digraph(format="svg")\r
\r
- prev = "start"\r
- graph.node("start", label="start")\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
+ 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
+ graph.edge(prev, new_node)\r
\r
- prev = new_node\r
+ prev = new_node\r
\r
- graph.render("long_chain")\r
- """\r
- subprocess.check_call([\r
- "dot", "-Tsvg", "-O", os.devnull\r
- ])\r
+ graph.render("long_chain")\r
+ """\r
+ subprocess.check_call([\r
+ "dot", "-Tsvg", "-O", os.devnull\r
+ ])\r