From 55fd173c898da2930a331db7755a7338920d3c38 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 06:23:53 -0600 Subject: Remove and replace compat.text_type --- git/test/test_commit.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'git/test/test_commit.py') diff --git a/git/test/test_commit.py b/git/test/test_commit.py index ca84f6d7..e41e80bb 100644 --- a/git/test/test_commit.py +++ b/git/test/test_commit.py @@ -17,7 +17,6 @@ from git import ( Actor, ) from git import Repo -from git.compat import text_type from git.objects.util import tzoffset, utc from git.repo.fun import touch from git.test.lib import ( @@ -142,7 +141,7 @@ class TestCommit(TestBase): self.assertEqual(len(name), 9) special = Actor._from_string(u"%s " % name) self.assertEqual(special.name, name) - assert isinstance(special.name, text_type) + assert isinstance(special.name, str) def test_traversal(self): start = self.rorepo.commit("a4d06724202afccd2b5c54f81bcf2bf26dea7fff") @@ -286,8 +285,8 @@ class TestCommit(TestBase): # create a commit with unicode in the message, and the author's name # Verify its serialization and deserialization cmt = self.rorepo.commit('0.1.6') - assert isinstance(cmt.message, text_type) # it automatically decodes it as such - assert isinstance(cmt.author.name, text_type) # same here + assert isinstance(cmt.message, str) # it automatically decodes it as such + assert isinstance(cmt.author.name, str) # same here cmt.message = u"üäêèß" self.assertEqual(len(cmt.message), 5) -- cgit v1.2.1