locust 2.22.1.dev38__py3-none-any.whl → 2.22.1.dev42__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
locust/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.22.1.dev38'
16
- __version_tuple__ = version_tuple = (2, 22, 1, 'dev38')
15
+ __version__ = version = '2.22.1.dev42'
16
+ __version_tuple__ = version_tuple = (2, 22, 1, 'dev42')
locust/argument_parser.py CHANGED
@@ -101,7 +101,6 @@ def find_locustfiles(locustfiles: list[str], is_directory: bool) -> list[str]:
101
101
  locustfiles.
102
102
 
103
103
  Ignores files that start with _
104
- Ignores files named locust.py
105
104
  """
106
105
  file_paths = []
107
106
 
@@ -122,7 +121,7 @@ def find_locustfiles(locustfiles: list[str], is_directory: bool) -> list[str]:
122
121
 
123
122
  for root, dirs, files in os.walk(locustdir):
124
123
  for file in files:
125
- if not file.startswith("_") and file.lower() != "locust.py" and file.endswith(".py"):
124
+ if not file.startswith("_") and file.endswith(".py"):
126
125
  file_path = os.path.join(root, file)
127
126
  file_paths.append(file_path)
128
127
  else:
@@ -130,9 +129,6 @@ def find_locustfiles(locustfiles: list[str], is_directory: bool) -> list[str]:
130
129
  if not file_path.endswith(".py"):
131
130
  sys.stderr.write(f"Invalid file '{file_path}'. File should have '.py' extension\n")
132
131
  sys.exit(1)
133
- if file_path.endswith("locust.py"):
134
- sys.stderr.write("Invalid file 'locust.py'. File name cannot be 'locust.py'\n")
135
- sys.exit(1)
136
132
 
137
133
  file_paths.append(file_path)
138
134
 
@@ -244,12 +240,6 @@ def parse_locustfile_option(args=None) -> list[str]:
244
240
  )
245
241
  sys.exit(1)
246
242
 
247
- if locustfile == "locust.py":
248
- sys.stderr.write(
249
- "The locustfile must not be named `locust.py`. Please rename the file and try again.\n"
250
- )
251
- sys.exit(1)
252
-
253
243
  return locustfiles
254
244
 
255
245
 
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-0ef39448.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}