Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Public API forDoctestItem #10312

Closed
Closed
Labels
@tony

Description

@tony

I assume byDoctestItem only being available from_pytest.doctest.DoctestItem, it's an internal / unstable API.

If I'm completely mistaken in that assumption please let me know

What's the problem this feature will solve?

Stable import for:

  • isinstance checking inside of autorun setup fixtures w/doctest_namespace (see my libtmux, libvcs examples, as well and cs.github.com search query)
  • other plugins re-usingDoctestItem, e.g. my docutils plugin

Describe the solution you'd like

Perhapspytest.DoctestItem or something of the sort

Alternative Solutions

Further battle-testing ofpytest's doctest plugin to stabilize the API, then exporting it

Additional context

I am usingDoctestItem on 3+ open source projects and need a stable place to import the type from

  1. libtmux/conftest.py
  2. libvcs/src/libvcs/conftest.py
  3. pytest-doctest-docutils (overrides pytest's doctest plugin)
  4. Seesearch for/from.*DoctestItem/ language:Python on cs.github.com

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp