Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#191 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
c, python
Ambito
testing-qa

Direzione di ricerca

Inizia da tests/test_module_attributes.py::TestModuleAttributes::test_features e riproduci il fallimento usando python3 setup.py test --system-zstd. Confronta le funzionalità del backend riportate con la configurazione system-zstd, quindi aggiorna le aspettative del test in modo che corrispondano alle funzionalità supportate e verifica che la suite di test passi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
641
Fork
117
Merge medio
1g 14h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di indygreg/python-zstandard

Tutte le issue di indygreg/python-zstandard

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.