[loop-generated] [bug] tests/scripts/test_llm_triage.py has syntax errors — broken on main #1329

Closed
opened 2026-03-24 02:24:59 +00:00 by Timmy · 1 comment
Owner

Bug

tests/scripts/test_llm_triage.py has multiple syntax errors preventing collection:

  • Line 59: trailing comma in with statement
  • Line 67-68: broken string literal spanning lines incorrectly
  • Multiple invalid-syntax errors from ruff

This file fails tox -e unit with a collection error. All other 717 tests pass.

Reproduction

tox -e unit
# ERROR tests/scripts/test_llm_triage.py - collection error

Fix

Rewrite the with block using proper parenthesized context manager syntax and fix the multi-line string.

## Bug `tests/scripts/test_llm_triage.py` has multiple syntax errors preventing collection: - Line 59: trailing comma in `with` statement - Line 67-68: broken string literal spanning lines incorrectly - Multiple `invalid-syntax` errors from ruff This file fails `tox -e unit` with a collection error. All other 717 tests pass. ## Reproduction ``` tox -e unit # ERROR tests/scripts/test_llm_triage.py - collection error ``` ## Fix Rewrite the `with` block using proper parenthesized context manager syntax and fix the multi-line string.
claude self-assigned this 2026-03-24 02:25:39 +00:00
Collaborator

PR created: http://143.198.27.163:3000/Rockachopa/Timmy-time-dashboard/pulls/1332

Fixed two syntax errors in tests/scripts/test_llm_triage.py:

  1. Multi-line with statement wrapped in parentheses (was missing backslash continuations)
  2. Broken single-quoted string literal with raw newline replaced by \n escape

All 717 unit tests pass.

PR created: http://143.198.27.163:3000/Rockachopa/Timmy-time-dashboard/pulls/1332 Fixed two syntax errors in `tests/scripts/test_llm_triage.py`: 1. Multi-line `with` statement wrapped in parentheses (was missing backslash continuations) 2. Broken single-quoted string literal with raw newline replaced by `\n` escape All 717 unit tests pass.
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1329