diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-07 06:20:23 -0600 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 |
commit | 768b9fffa58e82d6aa1f799bd5caebede9c9231b (patch) | |
tree | 0f995bb2702601f5edc3db05c85169f12e547ee8 /git/test/test_index.py | |
parent | 5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc (diff) | |
download | gitpython-768b9fffa58e82d6aa1f799bd5caebede9c9231b.tar.gz |
Remove and replace compat.string_types
Diffstat (limited to 'git/test/test_index.py')
-rw-r--r-- | git/test/test_index.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/test_index.py b/git/test/test_index.py index 4a23ceb1..0a2309f9 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -25,7 +25,7 @@ from git import ( GitCommandError, CheckoutError, ) -from git.compat import string_types, is_win +from git.compat import is_win from git.exc import ( HookExecutionError, InvalidGitRepositoryError @@ -388,7 +388,7 @@ class TestIndex(TestBase): self.assertEqual(len(e.failed_files), 1) self.assertEqual(e.failed_files[0], osp.basename(test_file)) self.assertEqual(len(e.failed_files), len(e.failed_reasons)) - self.assertIsInstance(e.failed_reasons[0], string_types) + self.assertIsInstance(e.failed_reasons[0], str) self.assertEqual(len(e.valid_files), 0) with open(test_file, 'rb') as fd: s = fd.read() |