mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-09-09 04:02:35 +00:00
style(code-runtime-python): keep the teardown v8-ignore under the line limit
The directive carried its whole justification inline at 203 characters, past the 140 the @stylistic/max-len rule allows (imports and template-literal messages are exempt; a line comment is not). The reasoning moves to the lines above and the directive keeps a short pointer, since a v8 ignore must stay on one line.
This commit is contained in:
@@ -1428,7 +1428,10 @@ export class PythonCodeRuntime extends CodeRuntime {
|
||||
// falls through, which is also the behavior on platforms with no
|
||||
// `/proc` to read.
|
||||
const nowStarted = readProcessStart(child.pid)
|
||||
/* v8 ignore next -- the refusal arm needs a real pid recycled into a new group leader between spawn and teardown, which no test can schedule; `readProcessStart` is covered directly instead. */
|
||||
// The refusal arm needs a real pid recycled into a new group leader
|
||||
// between spawn and teardown, which no test can schedule; the reader
|
||||
// itself is covered directly by the process-identity test.
|
||||
/* v8 ignore next -- unreachable without real pid reuse; see above. */
|
||||
if (leaderStarted !== undefined && nowStarted !== undefined && nowStarted !== leaderStarted) return
|
||||
process.kill(-child.pid, sig)
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user