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

test_pullWithUnnormalizedPath fails in python3 tests.

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
git, python
領域
testing-qa

調査の方向性

まず Python 2 と Python 3 で test_pullWithUnnormalizedPath を実行し、次に git/config.py の traceback、特に release() と write() を調べます。test runner による記録された例外の処理と、最終的な unittest の結果を比較します。Python 3 の動作が説明され、テストが正しい結果を報告すれば完了です。

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

説明

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 ?
主要言語
Python
スター
16
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

box/wavectl のほかの issue

box/wavectl の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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