diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-12-05 06:47:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 06:47:34 +0000 |
commit | 14db8c8f10377607c85a7fe449af8001a64f088e (patch) | |
tree | 83d4e03e3790bb3c1e8ff94d78f83494c780ea71 /test/ConfirmTests.py | |
parent | 88e6591b09c84ea8ecd5a576e6c9c5dbe565819a (diff) | |
parent | 2a452853224e3a9a8a516c5e5b105b2738b6912f (diff) | |
download | fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.tar.gz fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.tar.bz2 fork-ledger-14db8c8f10377607c85a7fe449af8001a64f088e.zip |
Merge pull request #2308 from afh/migrate-py-scripts
Migrate python scripts
Diffstat (limited to 'test/ConfirmTests.py')
-rwxr-xr-x | test/ConfirmTests.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ConfirmTests.py b/test/ConfirmTests.py index e82479ed..0dc2b9f5 100755 --- a/test/ConfirmTests.py +++ b/test/ConfirmTests.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # This script confirms both that the register report "adds up", and that its # final balance is the same as what the balance report shows. @@ -56,8 +56,8 @@ def confirm_report(command): if re.search(' -[VGB] ', command) and diff < 0.015: diff = 0.0 if diff > 0.001: - print("DISCREPANCY: %.3f (%.3f - %.3f) at line %d:" % \) - (running_total - total, running_total, total, index) + print("DISCREPANCY: %.3f (%.3f - %.3f) at line %d:" % \ + (running_total - total, running_total, total, index)) print(line,) running_total = total failure = True @@ -78,8 +78,8 @@ def confirm_report(command): diff = 0.0 if diff > 0.001: print() - print("DISCREPANCY: %.3f (%.3f - %.3f) between register and balance" % \) - (balance_total - running_total, balance_total, running_total) + print("DISCREPANCY: %.3f (%.3f - %.3f) between register and balance" % \ + (balance_total - running_total, balance_total, running_total)) print(last_line,) failure = True |