diff --git a/locust/user/task.py b/locust/user/task.py index 68d0b63baa..76629316da 100644 --- a/locust/user/task.py +++ b/locust/user/task.py @@ -88,7 +88,7 @@ def decorator_func(func): Check if task was used without parentheses (not called), like this:: @task - def my_task() + def my_task(self) pass """ if callable(weight):