Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Jul 29, 2024
1 parent 3ba794c commit 0e98bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyperf/_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def instantiate_selected_hooks(hook_names):
hook_managers = {}
for hook in get_selected_hooks(hook_names):
try:
hook_managers[hook.__name__] = hook.load()()
hook_managers[hook.name] = hook.load()()
except HookError as e:
print(f"ERROR setting up hook '{hook.__name__}':", file=sys.stderr)
print(f"ERROR setting up hook '{hook.name}':", file=sys.stderr)
print(str(e), file=sys.stderr)
sys.exit(1)

Expand Down
1 change: 0 additions & 1 deletion pyperf/_process_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
per process and writes it into stdout as a second line.
"""
import contextlib
import importlib.metadata
import json
import os
import subprocess
Expand Down

0 comments on commit 0e98bcb

Please sign in to comment.