locust 2.37.10.dev3__py3-none-any.whl → 2.37.11__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.

Potentially problematic release.


This version of locust might be problematic. Click here for more details.

locust/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.37.10.dev3'
21
- __version_tuple__ = version_tuple = (2, 37, 10, 'dev3')
20
+ __version__ = version = '2.37.11'
21
+ __version_tuple__ = version_tuple = (2, 37, 11)
@@ -459,7 +459,7 @@ class FastHttpUser(User):
459
459
  error_lines = []
460
460
  for l in traceback.format_exc().split("\n"):
461
461
  if m := self._callstack_regex.match(l):
462
- filename = re.sub(r"/(home|Users/\w*)/", "~/", m.group(1))
462
+ filename = re.sub(r"/((home|Users)/\w*)/", "~/", m.group(1))
463
463
  error_lines.append(filename + ":" + m.group(2) + m.group(3))
464
464
  short_resp = resp.text[:200] if resp.text else resp.text
465
465
  resp.failure(f"{e.__class__.__name__}: {e} at {', '.join(error_lines)}. Response was {short_resp}")
locust/main.py CHANGED
@@ -179,7 +179,7 @@ def main():
179
179
  options = parse_options()
180
180
 
181
181
  if getattr(options, "cloud", None):
182
- sys.exit(locust_cloud.main())
182
+ sys.exit(locust_cloud.main(locustfiles=locustfiles))
183
183
 
184
184
  stats.validate_stats_configuration()
185
185
 
locust/web.py CHANGED
@@ -662,6 +662,7 @@ class WebUI:
662
662
  all_hosts = {l.host for l in self.environment.runner.user_classes}
663
663
  if len(all_hosts) == 1:
664
664
  host = list(all_hosts)[0]
665
+ missing_host_warning = not host
665
666
  else:
666
667
  # since we have multiple User classes with different host attributes, we'll
667
668
  # inform that specifying host will override the host for all User classes