]> granicus.if.org Git - graphviz/commitdiff
remove Python 2 support from shapes regression test
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Jun 2021 15:04:54 +0000 (08:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 14 Jun 2021 14:57:59 +0000 (07:57 -0700)
Python 2 was EOLed in 2020. This change removes the ability to use Python 2 when
running the shapes test.

This is somewhat moot as the Makefile.am targets for this are not really usable
right now (see the commits merged in 7d0bd41a7ccac1d0d992e8c19ce08f62b85b16ad
that improved the situation but still did not make `make check-recursive`
runnable). Nevertheless this at least removes one legacy code path that does not
need to be worked on in future.

Related to #1992.

tests/regression_tests/shapes/Makefile.am
tests/regression_tests/shapes/shapes.sh [deleted file]

index 46a0c36c784c6806bc48257f4b71f5f6955e91b6..8ac3d18b0b05d1e08983637d5021af962af74e37 100644 (file)
@@ -1,9 +1,8 @@
 SUBDIRS = reference
 
 check test rtest:
-       ./shapes.sh
+       python3 shapes.py
 
 EXTRA_DIST = \
-       shapes.sh \
        test_shapes.py \
        shapes.py
diff --git a/tests/regression_tests/shapes/shapes.sh b/tests/regression_tests/shapes/shapes.sh
deleted file mode 100755 (executable)
index ba09fdb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh -e
-
-cd `dirname $0`
-
-if command -v python3; then
-    python3 shapes.py
-else
-    python2 shapes.py
-fi