Conversation
Delete four categories of now-unused test artifacts from the #430 / #501 skipped-tests cleanup: 1. tests/test_tmd_stats.py + tests/tmd.stats-expect Superseded by tests/test_tmd_file_fingerprint.py (landed in #504). The new fingerprint test covers the same reproducibility-check role with a relative-tolerance comparison that absorbs cross-machine floating-point noise, instead of the exact-text diff of df.describe() output that caused test_tmd_stats.py to be skipped. 2. tests/tmd.stats-expect-github + tests/tmd.stats-expect-mrh Alternate reference files that sat alongside tmd.stats-expect; no live references anywhere in the repo. 3. tests/expected_itax_rev_2021_data.yaml + tests/expected_ptax_rev_2021_data.yaml Unreferenced orphan files — the live lookup in test_tax_revenue.py always uses the 2022 YAMLs (TAXYEAR=2022 only). Zero references in the repo. 4. Updated the docstring in tests/test_tmd_file_fingerprint.py to remove the now-stale path reference to test_tmd_stats.py, replacing it with past-tense "the previously-skipped test_tmd_stats pattern". Not included in this PR: - test_variable_totals.py and test_misc.py::test_income_tax stay in place for now; their deletion is tied to the SOI sanity-check work that is being tracked separately. - test_imputed_variable_distribution stays untouched per its author's preference. Test plan: - make format: clean. - make lint: exit 0. - make test: 59 passed, 4 skipped (same set of skip markers as before this PR; this change does not affect any currently-running test). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced Apr 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deletes four categories of now-unused test artifacts from the skipped-tests cleanup that umbrella #501 described. This is the subset of that cleanup that can be done right now — items that depend on the still-to-be-written SOI sanity-check test are intentionally left in place for a follow-up pass.
What's removed
1.
tests/test_tmd_stats.py+tests/tmd.stats-expectSuperseded by
tests/test_tmd_file_fingerprint.py, which landed in #504. The new fingerprint test covers the same reproducibility-check role with a relative-tolerance comparison (rtol=1e-3) that absorbs cross-machine floating-point noise, instead of the exact-text diff ofdf.describe()output that causedtest_tmd_stats.pyto be skipped in the first place.2.
tests/tmd.stats-expect-github+tests/tmd.stats-expect-mrhAlternate reference files that had been sitting alongside
tmd.stats-expect. No live references anywhere in the repo — these were the artifacts of past debugging.3.
tests/expected_itax_rev_2021_data.yaml+tests/expected_ptax_rev_2021_data.yamlUnreferenced orphan files. The live lookup in
test_tax_revenue.pyuses the 2022 YAMLs unconditionally (TAXYEAR=2022 is the only live key). Zero references in the repo confirmed bygrep -r.4. Docstring update in
tests/test_tmd_file_fingerprint.pyReplaced the path-specific reference to
tests/test_tmd_stats.py(now-deleted) with a past-tense description of the pattern it replaces, so the docstring stays accurate.What's NOT in this PR
Intentionally left for the next round, which will be tracked in a separate focused issue (to be filed):
tests/test_variable_totals.py+tests/taxdata_variable_totals.yaml— deletion depends on a new SOI sanity-check test replacing its external-benchmark role.test_misc.py::test_income_taxand its expected values — same; that SOI sanity-check subsumes the functionality.test_imputed_variables.py::test_imputed_variable_distribution— staying in place on assumption that @martinholmer prefers to keep it in place.Test plan
make format— clean (64 files unchanged).make lint— exit 0.make test— 59 passed, 4 skipped. Skip count is unchanged from before this PR, and includes the pre-existing skip markers ontest_variable_totals,test_imputed_variable_distribution,test_tax_revenue. This change does not affect any currently-running test.grep -racross the repo confirms none of the deleted files are referenced by anything still in the tree.Related
iitax/payrolltaxwith a CBO or Treasury comparator #502 — sister design-discussion issue on future-year revenue comparator (open, independent)After this PR merges, a short follow-up issue will be filed to track the remaining SOI-sanity-check work and its associated deletions, at which point #430 and #501 can both be closed.