diff options
author | Ram Rachum <ram@rachum.com> | 2020-06-12 19:00:36 +0300 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-06-13 17:42:52 +0800 |
commit | 99ba753b837faab0509728ee455507f1a682b471 (patch) | |
tree | 5340a06b64d60550e66d509c92b78c9b018a6b00 /git/test/test_base.py | |
parent | 4720e6337bb14f24ec0b2b4a96359a9460dadee4 (diff) | |
download | gitpython-99ba753b837faab0509728ee455507f1a682b471.tar.gz |
Fix exception causes in 7 modules
Diffstat (limited to 'git/test/test_base.py')
-rw-r--r-- | git/test/test_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_base.py b/git/test/test_base.py index 9cbbcf23..9da7c471 100644 --- a/git/test/test_base.py +++ b/git/test/test_base.py @@ -129,8 +129,8 @@ class TestBase(TestBase): # verify first that we could encode file name in this environment try: file_path.encode(sys.getfilesystemencoding()) - except UnicodeEncodeError: - raise SkipTest("Environment doesn't support unicode filenames") + except UnicodeEncodeError as e: + raise SkipTest("Environment doesn't support unicode filenames") from e with open(file_path, "wb") as fp: fp.write(b'something') |