Skip to content

An existing dotenv FIFO is reported as missing #347

Closed

Description

@gaborbernat

Passing an existing FIFO to --envfile reports that the path does not exist. Listing it in env_files silently skips it.

Affected code

Configuration handling at ac5583c

Mechanism

Both lookups call Path.is_file(), which is false for a FIFO. Reference

Reproduction

Run at ac5583cb5181 with pytest 9.2.0 in an empty directory on Linux.

mkfifo stream.env
pytest --envfile=stream.env -q

Observed output:

FileNotFoundError: Environment file not found: stream.env

Distinguish an existing named pipe from a missing path.

Impact

Moderate to reproduce because a POSIX FIFO is required. Exposure is niche among users who stream dotenv data.

Credits

OSS Scanner report ANT-2026-KYVO4RV4.

Activity

  1. added
    bug
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions