Show More
@@ -144,8 +144,8 b' def _add_commits_to_repo(repo, commits):' | |||
|
144 | 144 | imc.remove(FileNode(node.path)) |
|
145 | 145 | |
|
146 | 146 | tip = imc.commit( |
|
147 |
message= |
|
|
148 |
author= |
|
|
147 | message=str(commit['message']), | |
|
148 | author=str(commit['author']), | |
|
149 | 149 | date=commit['date'], |
|
150 | 150 | branch=commit.get('branch')) |
|
151 | 151 | return tip |
@@ -38,7 +38,7 b' class TestRepositoryBase(BackendTestMixi' | |||
|
38 | 38 | recreate_repo_per_test = False |
|
39 | 39 | |
|
40 | 40 | def test_init_accepts_unicode_path(self, tmpdir): |
|
41 |
path = |
|
|
41 | path = str(tmpdir.join(u'unicode ä')) | |
|
42 | 42 | self.Backend(path, create=True) |
|
43 | 43 | |
|
44 | 44 | def test_init_accepts_str_path(self, tmpdir): |
@@ -46,12 +46,12 b' class TestRepositoryBase(BackendTestMixi' | |||
|
46 | 46 | self.Backend(path, create=True) |
|
47 | 47 | |
|
48 | 48 | def test_init_fails_if_path_does_not_exist(self, tmpdir): |
|
49 |
path = |
|
|
49 | path = str(tmpdir.join('i-do-not-exist')) | |
|
50 | 50 | with pytest.raises(VCSError): |
|
51 | 51 | self.Backend(path) |
|
52 | 52 | |
|
53 | 53 | def test_init_fails_if_path_is_not_a_valid_repository(self, tmpdir): |
|
54 |
path = |
|
|
54 | path = str(tmpdir.mkdir(u'unicode ä')) | |
|
55 | 55 | with pytest.raises(VCSError): |
|
56 | 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 | 55 | def test_init_fails_if_path_is_not_a_valid_repository(tmpdir): |
|
56 |
path = |
|
|
56 | path = str(tmpdir.mkdir('unicode ä')) | |
|
57 | 57 | with pytest.raises(VCSError): |
|
58 | 58 | SubversionRepository(path) |
|
59 | 59 |
General Comments 0
You need to be logged in to leave comments.
Login now