aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rstcheck/01-python3-test-suite.patch
blob: d7cd1e53bd8032935782af4103ddfbbe7ebbbccd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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