locust 2.26.1.dev65__py3-none-any.whl → 2.26.1.dev69__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.26.1.dev65'
16
- __version_tuple__ = version_tuple = (2, 26, 1, 'dev65')
15
+ __version__ = version = '2.26.1.dev69'
16
+ __version_tuple__ = version_tuple = (2, 26, 1, 'dev69')
locust/html.py CHANGED
@@ -39,10 +39,10 @@ def get_html_report(
39
39
  stats = environment.runner.stats
40
40
 
41
41
  start_ts = stats.start_time
42
- start_time = datetime.datetime.utcfromtimestamp(start_ts).strftime("%Y-%m-%d %H:%M:%S")
42
+ start_time = datetime.datetime.fromtimestamp(start_ts, tz=datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
43
43
 
44
44
  if end_ts := stats.last_request_timestamp:
45
- end_time = datetime.datetime.utcfromtimestamp(end_ts).strftime("%Y-%m-%d %H:%M:%S")
45
+ end_time = datetime.datetime.fromtimestamp(end_ts, tz=datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S")
46
46
  else:
47
47
  end_time = start_time
48
48
 
locust/input_events.py CHANGED
@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import collections
3
4
  import logging
4
5
  import os
5
6
  import sys
@@ -54,7 +55,7 @@ class WindowsKeyPoller:
54
55
  self.read_handle.SetConsoleMode(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT | ENABLE_PROCESSED_INPUT)
55
56
  self.cur_event_length = 0
56
57
  self.cur_keys_length = 0
57
- self.captured_chars = []
58
+ self.captured_chars = collections.deque()
58
59
  except pywintypes.error:
59
60
  raise InitError("Terminal says its a tty but we couldn't enable line input. Keyboard input disabled.")
60
61
  else:
@@ -65,7 +66,7 @@ class WindowsKeyPoller:
65
66
 
66
67
  def poll(self):
67
68
  if self.captured_chars:
68
- return self.captured_chars.pop(0)
69
+ return self.captured_chars.popleft()
69
70
 
70
71
  events_peek = self.read_handle.PeekConsoleInput(10000)
71
72
 
@@ -82,7 +83,7 @@ class WindowsKeyPoller:
82
83
  self.cur_event_length = len(events_peek)
83
84
 
84
85
  if self.captured_chars:
85
- return self.captured_chars.pop(0)
86
+ return self.captured_chars.popleft()
86
87
  else:
87
88
  return None
88
89
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.26.1.dev65
3
+ Version: 2.26.1.dev69
4
4
  Summary: Developer friendly load testing framework
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/locustio/locust
@@ -1,6 +1,6 @@
1
1
  locust/__init__.py,sha256=g6oA-Ba_hs3gLWVf5MKJ1mvfltI8MFnDWG8qslqm8yg,1402
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=XAOR3m6UKkFUWa6nw-XQkz_9tPV-rQVzjTu34xORmeM,428
3
+ locust/_version.py,sha256=calQfSW74k8Qb-qHcCjEHGE60ka-_181VgJEDatVU5o,428
4
4
  locust/argument_parser.py,sha256=izMXLuMZWUpS6m8SrGRmOjLfPPuYWXCvQFicRmn-a90,28774
5
5
  locust/clients.py,sha256=YKuAyMAbxs8_-w7XJw0hc67KFBNNLxibsw6FwiS01Q8,14781
6
6
  locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
@@ -8,8 +8,8 @@ locust/dispatch.py,sha256=vYh0QEDFgJ3hY0HgSk-EiNO7IP9ffzXF_Et8wB9JvsI,16995
8
8
  locust/env.py,sha256=jgXA4N8X1cGYZ48F16CbVAuhEo1zolJ65qqZyOzP1Dc,12510
9
9
  locust/event.py,sha256=xgNKbcejxy1TNUfIdgV75KgD2_BOwQmvjrJ4hWuydRw,7740
10
10
  locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
11
- locust/html.py,sha256=IrOYxmmowzcO96c9fytzR4U0lifTJyMTA7Rd96WOXkk,5708
12
- locust/input_events.py,sha256=VQIrgXaoph3JgLo6REKtPBThEPUXYXG5Kcedly5aRYc,3272
11
+ locust/html.py,sha256=f0coiIkRXSRV-MSLPhxLDT3xjmoqQxUxbAGtmDcPMXI,5754
12
+ locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
13
13
  locust/log.py,sha256=2IVp9YL4ZPfWdj3sBFuOHfgneg3g7m7tUGR-sy2s3E8,3155
14
14
  locust/main.py,sha256=Un9THvATWEOewIeeoLkecxBluxQcoC7BkFhmk_UgTxM,28150
15
15
  locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
@@ -95,9 +95,9 @@ locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8
95
95
  locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
96
96
  locust/webui/dist/assets/index-941b6e82.js,sha256=G3n5R81Svt0HzbWaV3AV20jLWGLr4X50UZ-Adu2KcxU,1645614
97
97
  locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
98
- locust-2.26.1.dev65.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
99
- locust-2.26.1.dev65.dist-info/METADATA,sha256=EwenAilDu1iQ1F_K2Wt0oUk73-o_86yYYcBDZrnqP2E,7267
100
- locust-2.26.1.dev65.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
101
- locust-2.26.1.dev65.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
102
- locust-2.26.1.dev65.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
103
- locust-2.26.1.dev65.dist-info/RECORD,,
98
+ locust-2.26.1.dev69.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
99
+ locust-2.26.1.dev69.dist-info/METADATA,sha256=L23kAwjxSu6tlJQYf2cu0zF6JzdgQB7Yp2ONiwkfGcs,7267
100
+ locust-2.26.1.dev69.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
101
+ locust-2.26.1.dev69.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
102
+ locust-2.26.1.dev69.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
103
+ locust-2.26.1.dev69.dist-info/RECORD,,