summaryrefslogtreecommitdiffstats
path: root/test/option
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-02-18 15:24:13 (GMT)
committerMats Wichmann <mats@linux.com>2020-02-20 14:27:02 (GMT)
commit71389d9642877ffcb191b16f7b08ba3bf78da530 (patch)
tree239c29d2ac66c5fc32640431329b11ae97c75832 /test/option
parent6975fa52a3424d995aadeabd31f57d491456a3e4 (diff)
downloadSCons-71389d9642877ffcb191b16f7b08ba3bf78da530.zip
SCons-71389d9642877ffcb191b16f7b08ba3bf78da530.tar.gz
SCons-71389d9642877ffcb191b16f7b08ba3bf78da530.tar.bz2
rm-py2: Remove "from __future__" from more places
A couple of minor reformats along the way, most prominently, in tests, if being edited anyway, make sure the docstring most tests have is actually the docstring (sometimes the __revision__ line came before, which makes the string not be the docstring). Snuck in some minor framework changes that were orphaned when another draft PR was not needed: this almost all docstring changes, the functional part is using casefold instead of lower in a match func - a slightly better approach which is now possible that Py2 compatibility is not needed. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/option')
-rw-r--r--test/option/debug-action-timestamps.py1
-rw-r--r--test/option/debug-count.py5
-rw-r--r--test/option/debug-multiple.py6
-rw-r--r--test/option/debug-time.py1
-rw-r--r--test/option/help-options.py5
5 files changed, 6 insertions, 12 deletions
diff --git a/test/option/debug-action-timestamps.py b/test/option/debug-action-timestamps.py
index 059cfdf..747d880 100644
--- a/test/option/debug-action-timestamps.py
+++ b/test/option/debug-action-timestamps.py
@@ -20,7 +20,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-from __future__ import division, print_function
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
diff --git a/test/option/debug-count.py b/test/option/debug-count.py
index 0234bfa..f2fceb4 100644
--- a/test/option/debug-count.py
+++ b/test/option/debug-count.py
@@ -20,14 +20,13 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-from __future__ import print_function
-
-__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
"""
Test that the --debug=count option works.
"""
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+
import re
import sys
diff --git a/test/option/debug-multiple.py b/test/option/debug-multiple.py
index 020aa85..124e033 100644
--- a/test/option/debug-multiple.py
+++ b/test/option/debug-multiple.py
@@ -21,14 +21,12 @@
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-from __future__ import print_function
-
-__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-
"""
Test that --debug can take multiple options
"""
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+
import re
import TestSCons
diff --git a/test/option/debug-time.py b/test/option/debug-time.py
index 3ed7555..7e95af3 100644
--- a/test/option/debug-time.py
+++ b/test/option/debug-time.py
@@ -20,7 +20,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-from __future__ import division, print_function
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
diff --git a/test/option/help-options.py b/test/option/help-options.py
index 1835a62..2dac532 100644
--- a/test/option/help-options.py
+++ b/test/option/help-options.py
@@ -20,14 +20,13 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-from __future__ import print_function
-
-__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
"""
Verify behavior of the -H and --help-options options.
"""
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+
import re
import TestSCons