Skip to content

pytest --version might better avoid loading config #3692

@yarikoptic

Description

@yarikoptic
  • Include a detailed description of the bug or suggestion

not sure if easily doable but ideally the --version shouldn't depend on parsing config etc, and just spit out a version of pytest since it might be the one to decide either config needs to be patched etc. ATM for me that fails:

(git)hopa:~exppsy/pandas[debian]git
$> pytest --version              
usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --strict-data-files
  inifile: /home/yoh/deb/gits/pkg-exppsy/pandas/setup.cfg
  rootdir: /home/yoh/deb/gits/pkg-exppsy/pandas
  • pytest and operating system versions
$> apt-cache policy python-pytest
python-pytest:
  Installed: 3.6.2-2
  Candidate: 3.6.2-2
  Version table:
 *** 3.6.2-2 600
        600 http://http.debian.net/debian sid/main amd64 Packages
        600 http://http.debian.net/debian sid/main i386 Packages
        100 /var/lib/dpkg/status

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questiongeneral question, might be closed after 2 weeks of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions