Skip to content

bug(testing): tests/a2a_compat_shim.py breaks pytest in /tmp worktrees #419

@bokelley

Description

@bokelley

Context

Role.ROLE_USER AttributeError fires on tests/conftest.py load when running pytest from a /tmp git worktree. The shim's defensive imports succeed in the canonical checkout but fail in some envs. Hit during PR #391, #406, #407 fix-pack agents.

Acceptance Criteria

  • Investigate why a2a_compat_shim.py defensive imports fail in /tmp worktrees
  • Either fix the shim OR move it out of conftest.py's import path so test collection doesn't depend on it
  • pytest runs cleanly from /tmp worktrees

Files

  • tests/a2a_compat_shim.py
  • tests/conftest.py

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions