Skip to content

chore: improve python-devtools maintenance path#167

Open
lphuc2250gma wants to merge 1 commit into
samuelcolvin:mainfrom
lphuc2250gma:maint/20260525064425
Open

chore: improve python-devtools maintenance path#167
lphuc2250gma wants to merge 1 commit into
samuelcolvin:mainfrom
lphuc2250gma:maint/20260525064425

Conversation

@lphuc2250gma
Copy link
Copy Markdown

Summary:

  • Add a small unit test in tests/test_timer.py covering an under-exercised edge case of devtools.timer.Timer — e.g. calling .summary() before any .capture() lap (verify it does not divide by zero and produces a sensible string), and/or that nested context-manager usage of Timer records the expected number of laps. Pure additive test, no behavior change.
  • Keep the change narrow so it is straightforward to review.

Notes:

  • I kept this scoped to the relevant implementation and tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant