unknown pytest option --doctest-docutils-modules

オープン
#496 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

Start with the pytest options in setup.cfg and compare the failing option with the documented pytest options. Run the test command using the repository configuration, then confirm pytest accepts the configured option and the test suite proceeds without the reported unrecognized-argument error.

索引モデルが issue の本文から書いたものです。

説明

Hi! I'm currently updating to 0.23.0post0 on Arch Linux and ran into the issue, that the setup.cfg declares an option to pytest that is not understood.

This is probably due to some pytest plugin or similar not being around or some version mismatch on your target test infrastructure.

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --doctest-docutils-modules
  inifile: /build/python-libtmux/src/libtmux-0.23.0post0/setup.cfg
  rootdir: /build/python-libtmux/src/libtmux-0.23.0post0

This is (roughly) how the package is being built: https://gitlab.archlinux.org/archlinux/packaging/packages/python-libtmux/-/blob/main/PKGBUILD
Here are the full build/test logs:
python-libtmux-0.23.0post0-1-x86_64-check.log
python-libtmux-0.23.0post0-1-x86_64-build.log

After using sed to replace --doctest-docutils-modules with --doctest-modules the tests work.

主要言語
Python
スター
1.2k
フォーク
127
平均マージ
2時間 13分
マージ済み PR(30日)
1

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tmux-python/libtmux のほかの issue

tmux-python/libtmux の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。