From e994f5f97691327df3eeaa487409d840a1db8cc8 Mon Sep 17 00:00:00 2001 From: Keith Maxwell Date: Thu, 9 May 2019 16:42:24 +0100 Subject: testing/rstcheck: new aport Closes: GH-7750 --- testing/rstcheck/01-python3-test-suite.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 testing/rstcheck/01-python3-test-suite.patch (limited to 'testing/rstcheck/01-python3-test-suite.patch') diff --git a/testing/rstcheck/01-python3-test-suite.patch b/testing/rstcheck/01-python3-test-suite.patch new file mode 100644 index 0000000000..d7cd1e53bd --- /dev/null +++ b/testing/rstcheck/01-python3-test-suite.patch @@ -0,0 +1,22 @@ +--- a/rstcheck.py ++++ b/rstcheck.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + # Copyright (C) 2013-2017 Steven Myint + # +--- a/test.bash ++++ b/test.bash +@@ -73,9 +73,9 @@ + # Ignore message on configuration file + ./rstcheck.py examples/with_configuration/bad-2.rst + +-if python -c 'import sys; sys.exit(0 if sys.version_info >= (3,) else 1)' ++if python3 -c 'import sys; sys.exit(0 if sys.version_info >= (3,) else 1)' + then +- python -m doctest -v README.rst rstcheck.py ++ python3 -m doctest -v README.rst rstcheck.py + ./rstcheck.py README.rst + fi + -- cgit v1.2.3