Skip to content

Commit

Permalink
chore: Prefer type() to __class__
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 31, 2024
1 parent 8f28c2a commit 24a55b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_analyze_test_dataset(spec, test_dataset_releases):
try:
list(spec.process_items(test_dataset_releases))
except AttributeError as e:
fail(f"{e.__class__.__name__}: {str(e)}")
fail(f"{type(e).__name__}: {str(e)}")


def test_analyze_with_combined_tables(spec, releases_with_combined_tables):
Expand Down

0 comments on commit 24a55b9

Please sign in to comment.