]> granicus.if.org Git - graphviz/commitdiff
tests: switch test_large_graphs.py to *nix line endings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 17 Apr 2022 01:03:32 +0000 (18:03 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 17 Apr 2022 22:58:09 +0000 (15:58 -0700)
Not sure how this one incurred Windows line endings, in contrast to the rest of
the tree.

tests/regression_tests/large/test_large_graphs.py

index d43bcf4302e9834d4f05a0bfdc540fffed8737ba..70f27a2974f96ec852be40e23646607e38dac884 100644 (file)
@@ -1,45 +1,45 @@
-"""\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"
+  ])