Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

test_pullWithUnnormalizedPath fails in python3 tests.

Abierto
#12 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
git, python
Área
testing-qa

Línea de trabajo

Comienza ejecutando test_pullWithUnnormalizedPath con Python 2 y Python 3; después inspecciona el traceback en git/config.py, especialmente release() y write(). Compara cómo gestiona el test runner la excepción registrada con el resultado final de unittest; la tarea estará completa cuando se explique el comportamiento de Python 3 y el test informe del resultado correcto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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 ?
Lenguaje dominante
Python
Estrellas
16
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de box/wavectl

Todos los issues de box/wavectl

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.