##// END OF EJS Templates
tests: removed use of unicode() calls
super-admin -
r4993:debf4b3b default
parent child Browse files
Show More
@@ -144,8 +144,8 b' def _add_commits_to_repo(repo, commits):'
144 imc.remove(FileNode(node.path))
144 imc.remove(FileNode(node.path))
145
145
146 tip = imc.commit(
146 tip = imc.commit(
147 message=unicode(commit['message']),
147 message=str(commit['message']),
148 author=unicode(commit['author']),
148 author=str(commit['author']),
149 date=commit['date'],
149 date=commit['date'],
150 branch=commit.get('branch'))
150 branch=commit.get('branch'))
151 return tip
151 return tip
@@ -38,7 +38,7 b' class TestRepositoryBase(BackendTestMixi'
38 recreate_repo_per_test = False
38 recreate_repo_per_test = False
39
39
40 def test_init_accepts_unicode_path(self, tmpdir):
40 def test_init_accepts_unicode_path(self, tmpdir):
41 path = unicode(tmpdir.join(u'unicode ä'))
41 path = str(tmpdir.join(u'unicode ä'))
42 self.Backend(path, create=True)
42 self.Backend(path, create=True)
43
43
44 def test_init_accepts_str_path(self, tmpdir):
44 def test_init_accepts_str_path(self, tmpdir):
@@ -46,12 +46,12 b' class TestRepositoryBase(BackendTestMixi'
46 self.Backend(path, create=True)
46 self.Backend(path, create=True)
47
47
48 def test_init_fails_if_path_does_not_exist(self, tmpdir):
48 def test_init_fails_if_path_does_not_exist(self, tmpdir):
49 path = unicode(tmpdir.join('i-do-not-exist'))
49 path = str(tmpdir.join('i-do-not-exist'))
50 with pytest.raises(VCSError):
50 with pytest.raises(VCSError):
51 self.Backend(path)
51 self.Backend(path)
52
52
53 def test_init_fails_if_path_is_not_a_valid_repository(self, tmpdir):
53 def test_init_fails_if_path_is_not_a_valid_repository(self, tmpdir):
54 path = unicode(tmpdir.mkdir(u'unicode ä'))
54 path = str(tmpdir.mkdir(u'unicode ä'))
55 with pytest.raises(VCSError):
55 with pytest.raises(VCSError):
56 self.Backend(path)
56 self.Backend(path)
57
57
@@ -53,7 +53,7 b' def test_init_fails_if_path_does_not_exi'
53
53
54
54
55 def test_init_fails_if_path_is_not_a_valid_repository(tmpdir):
55 def test_init_fails_if_path_is_not_a_valid_repository(tmpdir):
56 path = unicode(tmpdir.mkdir(u'unicode ä'))
56 path = str(tmpdir.mkdir('unicode ä'))
57 with pytest.raises(VCSError):
57 with pytest.raises(VCSError):
58 SubversionRepository(path)
58 SubversionRepository(path)
59
59
General Comments 0
You need to be logged in to leave comments. Login now