Skip to content

Commit b279d5a

Browse files
committed
print deviations regardless
1 parent 0cbbfb8 commit b279d5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

policyengine_us_data/tests/test_datasets/test_enhanced_cps.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def apply(self):
7575
pct_error = abs((tax_expenditure - target) / target)
7676
TOLERANCE = 0.15
7777

78-
assert (
79-
pct_error < TOLERANCE
80-
), f"{deduction} tax expenditure {tax_expenditure/1e9:.1f}bn differs from target {target/1e9:.1f}bn by {pct_error:.2%}"
78+
print(
79+
f"{deduction} tax expenditure {tax_expenditure/1e9:.1f}bn differs from target {target/1e9:.1f}bn by {pct_error:.2%}"
80+
)
81+
assert pct_error < TOLERANCE, deduction

0 commit comments

Comments
 (0)