From 768b9fffa58e82d6aa1f799bd5caebede9c9231b Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 06:20:23 -0600 Subject: Remove and replace compat.string_types --- git/test/test_commit.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'git/test/test_commit.py') diff --git a/git/test/test_commit.py b/git/test/test_commit.py index 96a03b20..ca84f6d7 100644 --- a/git/test/test_commit.py +++ b/git/test/test_commit.py @@ -17,10 +17,7 @@ from git import ( Actor, ) from git import Repo -from git.compat import ( - string_types, - text_type -) +from git.compat import text_type from git.objects.util import tzoffset, utc from git.repo.fun import touch from git.test.lib import ( @@ -276,7 +273,7 @@ class TestCommit(TestBase): def test_name_rev(self): name_rev = self.rorepo.head.commit.name_rev - assert isinstance(name_rev, string_types) + assert isinstance(name_rev, str) @with_rw_repo('HEAD', bare=True) def test_serialization(self, rwrepo): -- cgit v1.2.1