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

test_pullWithUnnormalizedPath fails in python3 tests.

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
git, python
Ambito
testing-qa

Direzione di ricerca

Inizia eseguendo test_pullWithUnnormalizedPath con Python 2 e Python 3, quindi esamina il traceback in git/config.py, in particolare release() e write(). Confronta la gestione dell’eccezione registrata da parte del test runner con il risultato finale di unittest; il lavoro è completato quando il comportamento di Python 3 è spiegato e il test riporta l’esito corretto.

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

Descrizione

bug

For example here
https://circleci.com/gh/box/wavectl/309

The test_pullWithUnnormalizedPath test actually failed. Gave this output:

  [test_pullWithUnnormalizedPath.py] ERROR:git.config:Exception during destruction of GitConfigParser
  [test_pullWithUnnormalizedPath.py] Traceback (most recent call last):
  [test_pullWithUnnormalizedPath.py]   File "/home/circleci/project/venv/lib64/python3.6/os.py", line 666, in __getitem__
  [test_pullWithUnnormalizedPath.py]     value = self._data[self.encodekey(key)]
  [test_pullWithUnnormalizedPath.py] KeyError: b'COLUMNS'
  [test_pullWithUnnormalizedPath.py] 
  [test_pullWithUnnormalizedPath.py] During handling of the above exception, another exception occurred:
  [test_pullWithUnnormalizedPath.py] 
  [test_pullWithUnnormalizedPath.py] Traceback (most recent call last):
  [test_pullWithUnnormalizedPath.py]   File "/home/circleci/project/venv/lib/python3.6/site-packages/git/config.py", line 259, in release
  [test_pullWithUnnormalizedPath.py]     self.write()
  [test_pullWithUnnormalizedPath.py]   File "/home/circleci/project/venv/lib/python3.6/site-packages/git/config.py", line 79, in assure_data_present
  [test_pullWithUnnormalizedPath.py]     return func(self, *args, **kwargs)
  [test_pullWithUnnormalizedPath.py]   File "/home/circleci/project/venv/lib/python3.6/site-packages/git/config.py", line 488, in write
  [test_pullWithUnnormalizedPath.py]     with open(self._file_or_files, "wb") as fp:
  [test_pullWithUnnormalizedPath.py] FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpxykt9gv0/.git/config'
  [test_pullWithUnnormalizedPath.py] .
  [test_pullWithUnnormalizedPath.py] ----------------------------------------------------------------------
  [test_pullWithUnnormalizedPath.py] Ran 1 test in 3.850s
  [test_pullWithUnnormalizedPath.py] 
  [test_pullWithUnnormalizedPath.py] OK
  1. Why is this test failing in python3 only. It passes in python2
  2. Even though there was an exeption, why did the python unittest pass and print this :[test_pullWithUnnormalizedPath.py] OK ?
Lingua principale
Python
Stelle
16
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 box/wavectl

Tutte le issue di box/wavectl

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.