Allow marked tests to be skipped under Windows
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
まず、skipif マーカーと forked マーカーを使用して、提示された Windows の例を再現し、マーカーの相互作用についてリンク先の pytest issue 7327 を確認してください。Windows でサポートされていない forked テストに対して選択した動作が実装され、報告されたスニペットに対して検証されていれば完了とします。
索引モデルが issue の本文から書いたものです。
説明
Currently, if the test is marked with forked, this plugin tries to run it in a forked subprocess regardless of the current env. Also, adding a conditional skip marker does not help and manifests itself as https://github.com/pytest-dev/pytest/issues/7327.
The following snippet still runs on Windows:
@pytest.mark.skipif(IS_WINDOWS, ...)
@pytest.mark.forked
def test():
...
The workaround that I currently use is:
@pytest.mark.skipif(IS_WINDOWS, ...)
def test():
...
if not IS_WINDOWS:
test = pytest.mark.forked(test)
This could be addressed in a few ways:
- Actually respect skip markers.
- Skip any tests marked with forked when the env is not supported.
- Run these tests but w/o trying to sandbox them.
I think I like 1+2 most.
- 主要言語
- Python
- スター
- 83
- フォーク
- 29
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytest-dev/pytest-forked のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pytest-dev/pytest-forked#106 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
pytest-dev/pytest-forked#84 ·
-
Fork per subpath オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pytest-dev/pytest-forked#94 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
pytest-dev/pytest-forked#88 · コメント 12 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
pytest-dev/pytest-forked#87 · リアクション 1 件 ·
pytest-dev/pytest-forked の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
hcocena オープンpolicies-accepted pre-review precheck-passed
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
Bioconductor/BiocContributions#214 · コメント 5 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
TencentCloud/Octop#1169 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
521xueweihan/HelloGitHub#3778 ·
-
The version checker's trailing attribute region has no control for a less-than inside a quoted value オープンarea: dashboard area: tests bug perceived difficulty: 2 python
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Nitjsefnie-Harness-Commons/daedalus#1105 · コメント 1 件 ·