File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ def test_autostart_wo_run_time(self):
616
616
try :
617
617
response = requests .get (f"http://localhost:{ port } /" )
618
618
except Exception :
619
- pass
619
+ response = None
620
620
proc .send_signal (signal .SIGTERM )
621
621
stdout , stderr = proc .communicate ()
622
622
self .assertIn ("Starting Locust" , stderr )
@@ -655,7 +655,7 @@ def test_autostart_w_run_time(self):
655
655
try :
656
656
response = requests .get (f"http://localhost:{ port } /" )
657
657
except Exception :
658
- pass
658
+ response = None
659
659
_ , stderr = proc .communicate (timeout = 4 )
660
660
self .assertIn ("Starting Locust" , stderr )
661
661
self .assertIn ("Run time limit set to 3 seconds" , stderr )
@@ -813,6 +813,7 @@ def my_task(self):
813
813
response = requests .get (f"http://localhost:{ port } /" )
814
814
except ConnectionError :
815
815
success = False
816
+ response = None
816
817
try :
817
818
_ , stderr = proc .communicate (timeout = 5 )
818
819
except subprocess .TimeoutExpired :
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ python_version = "3.9"
160
160
[tool .pyright ]
161
161
exclude = [" locust/test" ]
162
162
reportOptionalMemberAccess = " none"
163
- analyzeUnannotatedFunctions = false
163
+ # analyzeUnannotatedFunctions = false
164
164
165
165
166
166
# Hatch environments
You can’t perform that action at this time.
0 commit comments