|
17 | 17 | Actor, |
18 | 18 | ) |
19 | 19 | from git import Repo |
20 | | -from git.compat import text_type |
21 | 20 | from git.objects.util import tzoffset, utc |
22 | 21 | from git.repo.fun import touch |
23 | 22 | from git.test.lib import ( |
@@ -142,7 +141,7 @@ def test_unicode_actor(self): |
142 | 141 | self.assertEqual(len(name), 9) |
143 | 142 | special = Actor._from_string(u"%s <something@this.com>" % name) |
144 | 143 | self.assertEqual(special.name, name) |
145 | | - assert isinstance(special.name, text_type) |
| 144 | + assert isinstance(special.name, str) |
146 | 145 |
|
147 | 146 | def test_traversal(self): |
148 | 147 | start = self.rorepo.commit("a4d06724202afccd2b5c54f81bcf2bf26dea7fff") |
@@ -286,8 +285,8 @@ def test_serialization_unicode_support(self): |
286 | 285 | # create a commit with unicode in the message, and the author's name |
287 | 286 | # Verify its serialization and deserialization |
288 | 287 | cmt = self.rorepo.commit('0.1.6') |
289 | | - assert isinstance(cmt.message, text_type) # it automatically decodes it as such |
290 | | - assert isinstance(cmt.author.name, text_type) # same here |
| 288 | + assert isinstance(cmt.message, str) # it automatically decodes it as such |
| 289 | + assert isinstance(cmt.author.name, str) # same here |
291 | 290 |
|
292 | 291 | cmt.message = u"üäêèß" |
293 | 292 | self.assertEqual(len(cmt.message), 5) |
|
0 commit comments