Skip to content

Make collection-policy meta-tests warning-clean across supported pytest versions #202

Description

@clintecker

Finding

The full suite passes but emits seven pytest-asyncio configuration warnings from nested temporary pytest runs in tests/test_collection_plugin.py. Those subprocess fixtures omit the repository loop-scope setting, so warning cleanliness depends on ignored noise and future plugin-default changes can hide inside it.

Invariants

  • The supported matrix is warning-clean under repository policy.
  • Nested pytest tests receive explicit minimal configuration, not ambient state.
  • A new warning fails at the narrowest useful layer with its source visible.
  • Asyncio tests never depend on an evolving plugin default loop scope.

Acceptance criteria

  • Give nested fixtures an explicit asyncio_default_fixture_loop_scope, or disable the plugin where irrelevant.
  • Assert each nested invocation has no unexpected warning output.
  • Run collection-policy tests against minimum/maximum supported pytest and pytest-asyncio.
  • Keep the root suite under -W error except narrowly documented upstream exceptions.
  • Update contributor instructions if invocation changes.

Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dxContributor tooling, tests, maintainability, and development workflowarea:verificationExecutable contracts and artifact verificationaudit-5Findings from the fifth cross-audience repository, product, website, and trust auditbugSomething isn't workingpriority:P3Low: polish or opportunistic improvementtest-layer:L0Invariant inventory and collection-time contract gatestest-layer:metaTests of the test harness, mutation, and trust ratchets

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions