diff options
| author | Keith Maxwell <keith.maxwell@gmail.com> | 2019-05-09 16:42:24 +0100 |
|---|---|---|
| committer | TBK <tbk@jjtc.eu> | 2019-05-25 13:41:39 +0200 |
| commit | e994f5f97691327df3eeaa487409d840a1db8cc8 (patch) | |
| tree | a3ac88438cde641014b621ad021e51c90a0ec414 /testing/rstcheck/01-python3-test-suite.patch | |
| parent | 9235e5946e700ed47450ec3d87c5b4b16250f87d (diff) | |
| download | aports-e994f5f97691327df3eeaa487409d840a1db8cc8.tar.bz2 aports-e994f5f97691327df3eeaa487409d840a1db8cc8.tar.xz | |
testing/rstcheck: new aport
Closes: GH-7750
Diffstat (limited to 'testing/rstcheck/01-python3-test-suite.patch')
| -rw-r--r-- | testing/rstcheck/01-python3-test-suite.patch | 22 |
1 files changed, 22 insertions, 0 deletions
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 + |
