1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/testing/rstcheck/01-python3-test-suite.patch
Keith Maxwell e994f5f976
testing/rstcheck: new aport
Closes: GH-7750
2019-05-25 13:41:39 +02:00

22 lines
581 B
Diff

--- 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