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

FAILED tests/test_module_attributes.py::TestModuleAttributes::test_features fails with --system-zstd

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c, python
領域
testing-qa

調査の方向性

tests/test_module_attributes.py::TestModuleAttributes::test_features から始め、python3 setup.py test --system-zstd を使って失敗を再現します。報告されたバックエンドの機能と system-zstd の設定を比較し、サポートされている機能に一致するようテストの期待値を更新して、テストスイートがパスすることを確認します。

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

説明

python3 setup.py test --system-zstd
...
self = <tests.test_module_attributes.TestModuleAttributes testMethod=test_features>

    def test_features(self):
        self.assertIsInstance(zstd.backend_features, set)
    
        expected = {
            "cext": {
                "buffer_types",
                "multi_compress_to_buffer",
                "multi_decompress_to_buffer",
            },
            "cffi": set(),
            "rust": {
                "buffer_types",
                "multi_compress_to_buffer",
                "multi_decompress_to_buffer",
            },
        }[zstd.backend]
    
>       self.assertEqual(zstd.backend_features, expected)
E       AssertionError: Items in the second set but not the first:
E       'multi_compress_to_buffer'
E       'multi_decompress_to_buffer'

tests/test_module_attributes.py:29: AssertionError

I guess the tested features are available only with a statically linked copy of libzstd, right? The tests should reflect that.

主要言語
C
スター
641
フォーク
117
平均マージ
1日 14時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

indygreg/python-zstandard のほかの issue

indygreg/python-zstandard の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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