Skip to content

Commit 5e92b48

Browse files
correctly open dev/null
1 parent db1ed08 commit 5e92b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/lsp/beta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def discover_function_tests(server: CodeflashLanguageServer, params: FunctionOpt
6666
fto = server.optimizer.current_function_being_optimized
6767
optimizable_funcs = {fto.file_path: [fto]}
6868

69-
devnull_writer = Path.open(os.devnull, "w")
69+
devnull_writer = open(os.devnull, "w") # noqa
7070
with contextlib.redirect_stdout(devnull_writer):
7171
function_to_tests, num_discovered_tests = server.optimizer.discover_tests(optimizable_funcs)
7272

0 commit comments

Comments
 (0)