]> granicus.if.org Git - graphviz/commitdiff
Convert test_large_graphs.py to pytest
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sat, 25 Jul 2020 21:24:15 +0000 (23:24 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 30 Jul 2020 14:11:12 +0000 (16:11 +0200)
tests/regression_tests/large/test_large_graphs.py
tests/regression_tests/regression_tests.ps1

index b6f69c9b0eb789a302a3c3f9639fb4aca1ce0d6b..7c4d047cebbc9b3ef11832c090c3acccce65fcf2 100644 (file)
@@ -1,12 +1,12 @@
-from unittest import TestCase, skipIf\r
+import pytest\r
 \r
 import subprocess\r
 import os\r
 import sys\r
 \r
 \r
-class TestLargeGraphs(TestCase):\r
-       @skipIf(sys.platform == 'win32', reason='https://gitlab.com/graphviz/graphviz/-/issues/1710')\r
+class TestLargeGraphs():\r
+       @pytest.mark.skipif(sys.platform == 'win32', 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
index b9e05b1c5f110b037be59ca8ba6e8a17b69aed42..ba146df648c5152ab49656bfbebc126e6b7abe16 100644 (file)
@@ -7,4 +7,4 @@ Pop-Location
 # messages as an error, failing the pipeline. So we must redirect
 # stderr to stdout. The line noise at the end does so. See
 # https://stackoverflow.com/a/20950421/171898 for explanation.
-python -m unittest discover large 2>&1 | %{ "$_" }
+python -m pytest large 2>&1 | %{ "$_" }