Skip to content

Commit

Permalink
Remove TaskSet._user/_parent class level variables. Fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Nov 29, 2021
1 parent 5d84379 commit 9fe3e83
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions locust/user/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ class ForumPage(TaskSet):
if not set on the TaskSet.
"""

_user = None
_parent = None

def __init__(self, parent):
self._task_queue = []
self._time_start = time()
Expand All @@ -244,7 +241,7 @@ def __init__(self, parent):

self._parent = parent

# if this class doesn't have a min_wait, max_wait or wait_function defined, copy it from Locust
# if this class doesn't have a min_wait, max_wait or wait_function defined, copy it from User
if not self.min_wait:
self.min_wait = self.user.min_wait
if not self.max_wait:
Expand Down

0 comments on commit 9fe3e83

Please sign in to comment.