aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rstcheck/01-python3-test-suite.patch
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2019-05-09 16:42:24 +0100
committerTBK <tbk@jjtc.eu>2019-05-25 13:41:39 +0200
commite994f5f97691327df3eeaa487409d840a1db8cc8 (patch)
treea3ac88438cde641014b621ad021e51c90a0ec414 /testing/rstcheck/01-python3-test-suite.patch
parent9235e5946e700ed47450ec3d87c5b4b16250f87d (diff)
downloadaports-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.patch22
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
+