File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
tests/performance/locust_files/functions Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,13 @@ def on_stop(self) -> None:
123123
124124 @task
125125 def run_function (self ):
126- with TemporaryDirectory () as tmpdir :
127- tmp_dir = Path (tmpdir )
128- script = tmp_dir / "script.py"
126+ with TemporaryDirectory () as tmpdir_str , Path (tmpdir_str ) as tmpdir :
127+ script = tmpdir / "script.py"
129128 script .write_text (_PYTHON_SCRIPT )
130129 self ._script_uuid = self .upload_file (script )
131130
132131 inputs = {"x" : random .uniform (- 10 , 10 ), "y" : random .uniform (- 10 , 10 )}
133- input_json = tmp_dir / "function_inputs.json"
132+ input_json = tmpdir / "function_inputs.json"
134133 input_json .write_text (json .dumps (inputs ))
135134 self ._input_json_uuid = self .upload_file (input_json )
136135
You can’t perform that action at this time.
0 commit comments