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_remote.py | |
parent | 5d22d57010e064cfb9e0b6160e7bd3bb31dbfffc (diff) | |
download | gitpython-768b9fffa58e82d6aa1f799bd5caebede9c9231b.tar.gz |
Remove and replace compat.string_types
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r-- | git/test/test_remote.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py index 3ef47472..2194daec 100644 --- a/git/test/test_remote.py +++ b/git/test/test_remote.py @@ -22,7 +22,6 @@ from git import ( GitCommandError ) from git.cmd import Git -from git.compat import string_types from git.test.lib import ( TestBase, with_rw_repo, @@ -116,7 +115,7 @@ class TestRemote(TestBase): self.assertGreater(len(results), 0) self.assertIsInstance(results[0], FetchInfo) for info in results: - self.assertIsInstance(info.note, string_types) + self.assertIsInstance(info.note, str) if isinstance(info.ref, Reference): self.assertTrue(info.flags) # END reference type flags handling @@ -133,7 +132,7 @@ class TestRemote(TestBase): self.assertIsInstance(results[0], PushInfo) for info in results: self.assertTrue(info.flags) - self.assertIsInstance(info.summary, string_types) + self.assertIsInstance(info.summary, str) if info.old_commit is not None: self.assertIsInstance(info.old_commit, Commit) if info.flags & info.ERROR: |