From 6d2ecaa15c705e65b50c9ef4bf3a32b353e35a22 Mon Sep 17 00:00:00 2001 From: Max Rossmannek Date: Thu, 26 Nov 2020 23:33:32 +0100 Subject: [PATCH] Enforce Python 3 for unittests This commit updates all tests to enforce the Python3 executable. This is necessary because the `assertRegex` function we use was renamed to this name only in Python 3.2 [1] For reference: s;/usr/bin/env python;/usr/bin/env python3;g [1]: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertRegex --- test/abbreviation.t | 2 +- test/add.t | 2 +- test/alias.t | 2 +- test/annotate.t | 2 +- test/append.t | 2 +- test/args.t | 2 +- test/backlog.t | 2 +- test/bash_completion.t | 2 +- test/blocked.t | 2 +- test/bulk.t | 2 +- test/burndown.t | 2 +- test/calc.t | 2 +- test/calendar.t | 2 +- test/caseless.t | 2 +- test/color.cmd.t | 2 +- test/color.rules.t | 2 +- test/columns.t | 2 +- test/commands.t | 2 +- test/completed.t | 2 +- test/configuration.t | 2 +- test/confirmation.t | 2 +- test/context.t | 2 +- test/count.t | 2 +- test/custom.config.t | 2 +- test/custom.recur_ind.t | 2 +- test/custom.t | 2 +- test/custom.tag_ind.t | 2 +- test/date.iso.t | 2 +- test/dateformat.t | 2 +- test/datesort.t | 2 +- test/datetime-negative.t | 2 +- test/debug.t | 2 +- test/default.t | 2 +- test/delete.t | 2 +- test/denotate.t | 2 +- test/dependencies.t | 2 +- test/diag.t | 2 +- test/diag_color.t | 2 +- test/dom2.t | 2 +- test/due.t | 2 +- test/duplicate.t | 2 +- test/edit.t | 2 +- test/encoding.t | 2 +- test/enpassant.t | 2 +- test/exec.t | 2 +- test/export.t | 2 +- test/feature.559.t | 2 +- test/feature.default.project.t | 2 +- test/feature.print.empty.columns.t | 2 +- test/feature.recurrence.t | 2 +- test/feedback.t | 2 +- test/filter.t | 2 +- test/fontunderline.t | 2 +- test/format.t | 2 +- test/gc.t | 2 +- test/helpers.t | 2 +- test/history.t | 2 +- test/hooks.env.t | 2 +- test/hooks.on-add.t | 2 +- test/hooks.on-exit.t | 2 +- test/hooks.on-launch.t | 2 +- test/hooks.on-modify.t | 2 +- test/hyphenate.t | 2 +- test/ids.t | 2 +- test/import.t | 2 +- test/info.t | 2 +- test/limit.t | 2 +- test/list.all.projects.t | 2 +- test/log.t | 2 +- test/logo.t | 2 +- test/math.t | 2 +- test/modify.t | 2 +- test/nag.t | 2 +- test/obfuscate.t | 2 +- test/oldest.t | 2 +- test/operators.t | 2 +- test/overdue.t | 2 +- test/partial.t | 2 +- test/prepend.t | 2 +- test/pri_sort.t | 2 +- test/problems | 2 +- test/project.t | 2 +- test/purge.t | 2 +- test/quotes.t | 2 +- test/rc.override.t | 2 +- test/recurrence.t | 2 +- test/reports.t | 2 +- test/run_all | 4 ++-- test/search.t | 2 +- test/sequence.t | 2 +- test/shell.t | 2 +- test/show.t | 2 +- test/sorting.t | 2 +- test/special.t | 2 +- test/start.t | 2 +- test/stats.t | 2 +- test/stress_test | 2 +- test/substitute.t | 2 +- test/sugar.t | 2 +- test/summary.t | 2 +- test/tag.t | 2 +- test/taskrc.t | 2 +- test/template.t | 4 ++-- test/test_hooks/on-modify-for-template-badexit.py | 2 +- test/test_hooks/on-modify-for-template.py | 2 +- test/timesheet.t | 2 +- test/tw-1379.t | 2 +- test/tw-1837.t | 2 +- test/tw-1999.t | 2 +- test/tw-20.t | 2 +- test/tw-262.t | 2 +- test/tw-295.t | 2 +- test/tw-46.t | 2 +- test/uda.t | 2 +- test/uda_orphan.t | 2 +- test/uda_report.t | 2 +- test/uda_sort.t | 2 +- test/undo.t | 2 +- test/unicode.t | 2 +- test/unique.t | 2 +- test/upgrade.t | 2 +- test/urgency.t | 2 +- test/urgency_inherit.t | 2 +- test/uuid.t | 2 +- test/verbose.t | 2 +- test/version.t | 2 +- test/wait.t | 2 +- 127 files changed, 129 insertions(+), 129 deletions(-) diff --git a/test/abbreviation.t b/test/abbreviation.t index 97ee3706b..34f4ee701 100755 --- a/test/abbreviation.t +++ b/test/abbreviation.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/add.t b/test/add.t index 28400dee4..8d0841c87 100755 --- a/test/add.t +++ b/test/add.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/alias.t b/test/alias.t index 5ce82bf45..36392da4d 100755 --- a/test/alias.t +++ b/test/alias.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/annotate.t b/test/annotate.t index 99ada7c1f..8aa818125 100755 --- a/test/annotate.t +++ b/test/annotate.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/append.t b/test/append.t index 0512eed11..8fea26f41 100755 --- a/test/append.t +++ b/test/append.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/args.t b/test/args.t index a5c51d4d6..1f3268de7 100755 --- a/test/args.t +++ b/test/args.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/backlog.t b/test/backlog.t index 85681596a..304269ce5 100755 --- a/test/backlog.t +++ b/test/backlog.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/bash_completion.t b/test/bash_completion.t index d153ef89f..44ce9f1ad 100755 --- a/test/bash_completion.t +++ b/test/bash_completion.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/blocked.t b/test/blocked.t index c5ebdae95..fe794a7d8 100755 --- a/test/blocked.t +++ b/test/blocked.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/bulk.t b/test/bulk.t index 610904975..996df4edf 100755 --- a/test/bulk.t +++ b/test/bulk.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/burndown.t b/test/burndown.t index a9f34fed6..98c0658dc 100755 --- a/test/burndown.t +++ b/test/burndown.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/calc.t b/test/calc.t index 1c1cbc005..1bf59b0ea 100755 --- a/test/calc.t +++ b/test/calc.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/calendar.t b/test/calendar.t index 916596628..1a9544b04 100755 --- a/test/calendar.t +++ b/test/calendar.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/caseless.t b/test/caseless.t index f1e9308d6..3044152af 100755 --- a/test/caseless.t +++ b/test/caseless.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/color.cmd.t b/test/color.cmd.t index 832165854..b47b0ba95 100755 --- a/test/color.cmd.t +++ b/test/color.cmd.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/color.rules.t b/test/color.rules.t index 868723163..faeec6404 100755 --- a/test/color.rules.t +++ b/test/color.rules.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/columns.t b/test/columns.t index 0e68a0328..9f9c50a12 100755 --- a/test/columns.t +++ b/test/columns.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/commands.t b/test/commands.t index 7dcd016a7..496b5d259 100755 --- a/test/commands.t +++ b/test/commands.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/completed.t b/test/completed.t index eb14e47fd..e123d3f10 100755 --- a/test/completed.t +++ b/test/completed.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/configuration.t b/test/configuration.t index eb2f32d22..b623bb980 100755 --- a/test/configuration.t +++ b/test/configuration.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/confirmation.t b/test/confirmation.t index 93d07d67b..17881ef7d 100755 --- a/test/confirmation.t +++ b/test/confirmation.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/context.t b/test/context.t index 5eecb85b8..f16674003 100755 --- a/test/context.t +++ b/test/context.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/count.t b/test/count.t index 1c29f4552..019195a34 100755 --- a/test/count.t +++ b/test/count.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/custom.config.t b/test/custom.config.t index 1ce802b71..1f911b031 100755 --- a/test/custom.config.t +++ b/test/custom.config.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/custom.recur_ind.t b/test/custom.recur_ind.t index c7692150e..1d4ace6c9 100755 --- a/test/custom.recur_ind.t +++ b/test/custom.recur_ind.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/custom.t b/test/custom.t index c29ebbc2c..65bd740d1 100755 --- a/test/custom.t +++ b/test/custom.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/custom.tag_ind.t b/test/custom.tag_ind.t index 3cf5850e6..253951ddd 100755 --- a/test/custom.tag_ind.t +++ b/test/custom.tag_ind.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/date.iso.t b/test/date.iso.t index 7e92d0e23..5bf993dcc 100755 --- a/test/date.iso.t +++ b/test/date.iso.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/dateformat.t b/test/dateformat.t index 5b0e0e98c..62774fb15 100755 --- a/test/dateformat.t +++ b/test/dateformat.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/datesort.t b/test/datesort.t index e00382c47..a3192c663 100755 --- a/test/datesort.t +++ b/test/datesort.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/datetime-negative.t b/test/datetime-negative.t index c6999cf24..cff832451 100755 --- a/test/datetime-negative.t +++ b/test/datetime-negative.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/debug.t b/test/debug.t index c47660326..ea11286b5 100755 --- a/test/debug.t +++ b/test/debug.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/default.t b/test/default.t index 630314aa7..e5788be26 100755 --- a/test/default.t +++ b/test/default.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/delete.t b/test/delete.t index b80deb6e1..ff6a59736 100755 --- a/test/delete.t +++ b/test/delete.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/denotate.t b/test/denotate.t index 8d58a2d7f..2391178e9 100755 --- a/test/denotate.t +++ b/test/denotate.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/dependencies.t b/test/dependencies.t index a68870fef..ddba95356 100755 --- a/test/dependencies.t +++ b/test/dependencies.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/diag.t b/test/diag.t index f6d0ed27a..ad5e65146 100755 --- a/test/diag.t +++ b/test/diag.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/diag_color.t b/test/diag_color.t index a56550f2f..11aeefc17 100755 --- a/test/diag_color.t +++ b/test/diag_color.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/dom2.t b/test/dom2.t index 7a4c3e358..4c1b7950d 100755 --- a/test/dom2.t +++ b/test/dom2.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/due.t b/test/due.t index 4f2accd30..a88feb8bc 100755 --- a/test/due.t +++ b/test/due.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/duplicate.t b/test/duplicate.t index d15bd2a8b..9b8abaa3b 100755 --- a/test/duplicate.t +++ b/test/duplicate.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/edit.t b/test/edit.t index c10675bae..5afab6296 100755 --- a/test/edit.t +++ b/test/edit.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/encoding.t b/test/encoding.t index e517eeab2..4515ce45e 100755 --- a/test/encoding.t +++ b/test/encoding.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/enpassant.t b/test/enpassant.t index 1b54949d8..342645c2a 100755 --- a/test/enpassant.t +++ b/test/enpassant.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/exec.t b/test/exec.t index 21daa78a1..26aca5ab1 100755 --- a/test/exec.t +++ b/test/exec.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/export.t b/test/export.t index 3343b9178..045e2c7b8 100755 --- a/test/export.t +++ b/test/export.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/feature.559.t b/test/feature.559.t index 9d3fc17ee..4ea78b1a9 100755 --- a/test/feature.559.t +++ b/test/feature.559.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/feature.default.project.t b/test/feature.default.project.t index f2b152896..dd2748f4f 100755 --- a/test/feature.default.project.t +++ b/test/feature.default.project.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/feature.print.empty.columns.t b/test/feature.print.empty.columns.t index 060599d3c..69e643b51 100755 --- a/test/feature.print.empty.columns.t +++ b/test/feature.print.empty.columns.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/feature.recurrence.t b/test/feature.recurrence.t index 001a75920..3efe6708c 100755 --- a/test/feature.recurrence.t +++ b/test/feature.recurrence.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/feedback.t b/test/feedback.t index 8f6a413f1..6bdae5ecf 100755 --- a/test/feedback.t +++ b/test/feedback.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/filter.t b/test/filter.t index cd72e31cc..25cc2de6a 100755 --- a/test/filter.t +++ b/test/filter.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/fontunderline.t b/test/fontunderline.t index 53b06c123..749425ff4 100755 --- a/test/fontunderline.t +++ b/test/fontunderline.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/format.t b/test/format.t index 98f89e91a..450110fe4 100755 --- a/test/format.t +++ b/test/format.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/gc.t b/test/gc.t index 8d1937bd0..bb51c95bf 100755 --- a/test/gc.t +++ b/test/gc.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/helpers.t b/test/helpers.t index 69388f6bf..bb6f39202 100755 --- a/test/helpers.t +++ b/test/helpers.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/history.t b/test/history.t index 128ef48b9..82fbab044 100755 --- a/test/history.t +++ b/test/history.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/hooks.env.t b/test/hooks.env.t index a38f422ee..cd060ba10 100755 --- a/test/hooks.env.t +++ b/test/hooks.env.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/hooks.on-add.t b/test/hooks.on-add.t index a497eb56f..16feb4980 100755 --- a/test/hooks.on-add.t +++ b/test/hooks.on-add.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/hooks.on-exit.t b/test/hooks.on-exit.t index 434619601..0852a7c81 100755 --- a/test/hooks.on-exit.t +++ b/test/hooks.on-exit.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/hooks.on-launch.t b/test/hooks.on-launch.t index a12263b68..057c87ef1 100755 --- a/test/hooks.on-launch.t +++ b/test/hooks.on-launch.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/hooks.on-modify.t b/test/hooks.on-modify.t index 94fb7d48d..1903b75e9 100755 --- a/test/hooks.on-modify.t +++ b/test/hooks.on-modify.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/hyphenate.t b/test/hyphenate.t index 7698adc6f..511740b44 100755 --- a/test/hyphenate.t +++ b/test/hyphenate.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/ids.t b/test/ids.t index 1f1a48a0c..c8567f60f 100755 --- a/test/ids.t +++ b/test/ids.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/import.t b/test/import.t index 86a7c0201..5f29a942d 100755 --- a/test/import.t +++ b/test/import.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/info.t b/test/info.t index a7ec0daf2..167d35c47 100755 --- a/test/info.t +++ b/test/info.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/limit.t b/test/limit.t index e2b936d50..116d4ece4 100755 --- a/test/limit.t +++ b/test/limit.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/list.all.projects.t b/test/list.all.projects.t index f163a13e4..bef5f7384 100755 --- a/test/list.all.projects.t +++ b/test/list.all.projects.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/log.t b/test/log.t index 0640bd51a..a28904b7b 100755 --- a/test/log.t +++ b/test/log.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/logo.t b/test/logo.t index 7a2f00084..9f358c879 100755 --- a/test/logo.t +++ b/test/logo.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/math.t b/test/math.t index 4e88f6292..8b745ab39 100755 --- a/test/math.t +++ b/test/math.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/modify.t b/test/modify.t index 53e9b211d..3f5c90cd6 100755 --- a/test/modify.t +++ b/test/modify.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/nag.t b/test/nag.t index ebc238cc8..73d594970 100755 --- a/test/nag.t +++ b/test/nag.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/obfuscate.t b/test/obfuscate.t index e6f70d464..d7b7c1716 100755 --- a/test/obfuscate.t +++ b/test/obfuscate.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/oldest.t b/test/oldest.t index 58e765ade..1b3f8fb0b 100755 --- a/test/oldest.t +++ b/test/oldest.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/operators.t b/test/operators.t index b62dc6526..64c5ac035 100755 --- a/test/operators.t +++ b/test/operators.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/overdue.t b/test/overdue.t index 53eee830b..bcbf3eb7f 100755 --- a/test/overdue.t +++ b/test/overdue.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/partial.t b/test/partial.t index cd58d11f6..01b7bc949 100755 --- a/test/partial.t +++ b/test/partial.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/prepend.t b/test/prepend.t index 19a2ba88e..0572aacae 100755 --- a/test/prepend.t +++ b/test/prepend.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/pri_sort.t b/test/pri_sort.t index f1c15da92..4ca09e73b 100755 --- a/test/pri_sort.t +++ b/test/pri_sort.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/problems b/test/problems index 3e739422f..1b3709f54 100755 --- a/test/problems +++ b/test/problems @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import sys diff --git a/test/project.t b/test/project.t index c1d1fbaea..e32148276 100755 --- a/test/project.t +++ b/test/project.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/purge.t b/test/purge.t index 5891c7d0c..9d84320a9 100755 --- a/test/purge.t +++ b/test/purge.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/quotes.t b/test/quotes.t index 72ac0e749..bea106da7 100755 --- a/test/quotes.t +++ b/test/quotes.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/rc.override.t b/test/rc.override.t index 4709b4d8b..ebf2feac0 100755 --- a/test/rc.override.t +++ b/test/rc.override.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/recurrence.t b/test/recurrence.t index ad08a650c..792f9c259 100755 --- a/test/recurrence.t +++ b/test/recurrence.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/reports.t b/test/reports.t index 390d6d163..be1d2423e 100755 --- a/test/reports.t +++ b/test/reports.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/run_all b/test/run_all index 7f91a3217..812d3914e 100755 --- a/test/run_all +++ b/test/run_all @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function @@ -126,7 +126,7 @@ class TestRunner(object): with open(test, 'rb') as fh: header = fh.read(100).split(b"\n") if len(header) >= 2 and \ - ((b"/usr/bin/env python" in header[0]) or \ + ((b"/usr/bin/env python3" in header[0]) or \ (header[1][-14:] == b"bash_tap_tw.sh")): return True else: diff --git a/test/search.t b/test/search.t index fab215020..40036ba80 100755 --- a/test/search.t +++ b/test/search.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/sequence.t b/test/sequence.t index e3fa07147..8f3a7d034 100755 --- a/test/sequence.t +++ b/test/sequence.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/shell.t b/test/shell.t index 4925390e0..ecd14430f 100755 --- a/test/shell.t +++ b/test/shell.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/show.t b/test/show.t index 83015e87c..2e31bde9f 100755 --- a/test/show.t +++ b/test/show.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/sorting.t b/test/sorting.t index b21ea6158..b66a06c93 100755 --- a/test/sorting.t +++ b/test/sorting.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/special.t b/test/special.t index bfcb908ff..84a5d55f1 100755 --- a/test/special.t +++ b/test/special.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/start.t b/test/start.t index 5c528f08d..000603b65 100755 --- a/test/start.t +++ b/test/start.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/stats.t b/test/stats.t index 5e9adbff8..be383184d 100755 --- a/test/stats.t +++ b/test/stats.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/stress_test b/test/stress_test index cf3690f67..73975127f 100755 --- a/test/stress_test +++ b/test/stress_test @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import print_function diff --git a/test/substitute.t b/test/substitute.t index e053486a9..a08df8d8f 100755 --- a/test/substitute.t +++ b/test/substitute.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/sugar.t b/test/sugar.t index 407ad07e6..229c3b734 100755 --- a/test/sugar.t +++ b/test/sugar.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/summary.t b/test/summary.t index 3993cdfff..95c78913b 100755 --- a/test/summary.t +++ b/test/summary.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tag.t b/test/tag.t index 95f4f156e..1ec01f18d 100755 --- a/test/tag.t +++ b/test/tag.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/taskrc.t b/test/taskrc.t index 6145054d9..ebbafe672 100755 --- a/test/taskrc.t +++ b/test/taskrc.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/template.t b/test/template.t index a0f02e588..874af0414 100644 --- a/test/template.t +++ b/test/template.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # @@ -134,7 +134,7 @@ class TestHooksBugNumber(TestCase): """Testing a custom made hook""" hookname = "on-modify-example-raw" - content = """#!/usr/bin/env python + content = """#!/usr/bin/env python3 import sys import json diff --git a/test/test_hooks/on-modify-for-template-badexit.py b/test/test_hooks/on-modify-for-template-badexit.py index 883c9e621..6527ebfb3 100644 --- a/test/test_hooks/on-modify-for-template-badexit.py +++ b/test/test_hooks/on-modify-for-template-badexit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys diff --git a/test/test_hooks/on-modify-for-template.py b/test/test_hooks/on-modify-for-template.py index 6600b3a72..aeea80f2a 100644 --- a/test/test_hooks/on-modify-for-template.py +++ b/test/test_hooks/on-modify-for-template.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys diff --git a/test/timesheet.t b/test/timesheet.t index 08920f760..a7d3f3201 100755 --- a/test/timesheet.t +++ b/test/timesheet.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-1379.t b/test/tw-1379.t index 652f0ea06..afbef3bd5 100755 --- a/test/tw-1379.t +++ b/test/tw-1379.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-1837.t b/test/tw-1837.t index 402697bc8..65b2e2ac5 100644 --- a/test/tw-1837.t +++ b/test/tw-1837.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-1999.t b/test/tw-1999.t index 50444603e..fd72be44c 100755 --- a/test/tw-1999.t +++ b/test/tw-1999.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-20.t b/test/tw-20.t index 2325d79e2..db99ee28b 100755 --- a/test/tw-20.t +++ b/test/tw-20.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-262.t b/test/tw-262.t index c3680210b..aaa3a875d 100755 --- a/test/tw-262.t +++ b/test/tw-262.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-295.t b/test/tw-295.t index 1e83604dd..0560816ef 100755 --- a/test/tw-295.t +++ b/test/tw-295.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/tw-46.t b/test/tw-46.t index 2f409e04a..922ec3d86 100755 --- a/test/tw-46.t +++ b/test/tw-46.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/uda.t b/test/uda.t index 45ed88b60..c70556f80 100755 --- a/test/uda.t +++ b/test/uda.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/uda_orphan.t b/test/uda_orphan.t index bc7764cc1..aabbbb563 100755 --- a/test/uda_orphan.t +++ b/test/uda_orphan.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/uda_report.t b/test/uda_report.t index c7d6d08ee..abea11faf 100755 --- a/test/uda_report.t +++ b/test/uda_report.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/uda_sort.t b/test/uda_sort.t index 16115375f..6bd0ddde3 100755 --- a/test/uda_sort.t +++ b/test/uda_sort.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/undo.t b/test/undo.t index 3f5756148..f0bf1643a 100755 --- a/test/undo.t +++ b/test/undo.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/unicode.t b/test/unicode.t index 41f62660e..8f7df41de 100755 --- a/test/unicode.t +++ b/test/unicode.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/unique.t b/test/unique.t index 42b6b3440..e512b8a89 100755 --- a/test/unique.t +++ b/test/unique.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/upgrade.t b/test/upgrade.t index 29927233d..32d1a2bd8 100755 --- a/test/upgrade.t +++ b/test/upgrade.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/urgency.t b/test/urgency.t index e5af4a963..80c9deba6 100755 --- a/test/urgency.t +++ b/test/urgency.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/urgency_inherit.t b/test/urgency_inherit.t index 16f5fef15..271c00662 100755 --- a/test/urgency_inherit.t +++ b/test/urgency_inherit.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/uuid.t b/test/uuid.t index 14d29ffe6..7f964a29f 100755 --- a/test/uuid.t +++ b/test/uuid.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/verbose.t b/test/verbose.t index 4edb1b087..2d1e34f13 100755 --- a/test/verbose.t +++ b/test/verbose.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/version.t b/test/version.t index a689ea378..35f4a17f4 100755 --- a/test/version.t +++ b/test/version.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # diff --git a/test/wait.t b/test/wait.t index f0c477464..e02331f41 100755 --- a/test/wait.t +++ b/test/wait.t @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### #