Skip to content

Commit

Permalink
Improve warning language
Browse files Browse the repository at this point in the history
Summary: Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: r-barnes

Differential Revision: D47369565

fbshipit-source-id: 34a6cb4aec915c7efff25fedc116757cfe986ec7
  • Loading branch information
Elliotte Harold authored and facebook-github-bot committed Jul 14, 2023
1 parent 6b938e7 commit 4fda1fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testslide/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
if self.import_secs and self.import_secs > 1 and self._import_secs_warn:
self.print_yellow(
"Warning: Importing test modules alone took %.1fs! To remove this slow "
"down remove object construction from module level. If not possible, "
"consider using/ lazy_import(). Try using --import-profiler to profile "
"Warning: Importing test modules alone took %.1fs! To speed this up, "
"remove object construction from module level. If not possible, "
"consider using lazy_import(). Try using --import-profiler to profile "
"your imports." % (self.import_secs)
)
self._import_secs_warn = False
Expand Down

0 comments on commit 4fda1fa

Please sign in to comment.