Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_pullWithUnnormalizedPath fails in python3 tests. #12

Open
ahakanbaba opened this issue Jun 9, 2018 · 0 comments
Open

test_pullWithUnnormalizedPath fails in python3 tests. #12

ahakanbaba opened this issue Jun 9, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ahakanbaba
Copy link
Contributor

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 ?
@ahakanbaba ahakanbaba added the bug Something isn't working label Jun 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant