Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

tests/js_helpers.py is imported by bare name, so pytest --import-mode=importlib cannot collect the parity tests

クローズ 初心者向け
#945 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python

調査の方向性

pyproject.toml、tests/test_declared_dependencies.py、および tests/test_js_parity_*.py の import を確認してください。python3 -m pytest tests/test_js_parity_profile.py -q --import-mode=importlib で収集エラーを再現し、その後、提案されている2つの import 方法を比較してください。依存関係のホワイトリストが削除され、CI で両方の import モードにおいてパリティテストが収集されれば完了です。

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

説明

enhancement good first issue

Where: tests/test_js_parity_*.py (from js_helpers import ..., added by the split in #938), pyproject.toml, tests/test_declared_dependencies.py.

Current gap: the parity tests import their shared helpers as the top-level module js_helpers, which only works because pytest's default prepend import mode puts tests/ on sys.path. Under --import-mode=importlib (which pytest recommends for new projects) collection fails, and the helper had to be whitelisted in NOT_A_PYPROJECT_DEPENDENCY so the dependency check would not call it a third-party package.

Repro:

$ python3 -m pytest tests/test_js_parity_profile.py -q --import-mode=importlib
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!

Suggested approach: add pythonpath = ["tests"] under [tool.pytest.ini_options] (and keep the module name) or make tests a package and import tests.js_helpers; then drop the whitelist entry and run the suite in both import modes in CI.

主要言語
HTML
スター
47
フォーク
45
平均マージ
2時間 49分
マージ済み PR(30日)
61

環境構築

はじめの一歩

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

yakew7/Fair-Code のほかの issue

yakew7/Fair-Code の issue をすべて見る

似ている issue

Build System の issue をもっと見る

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

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