|
9 | 9 | importtempfile |
10 | 10 | fromunittestimportSkipTest,skipIf |
11 | 11 |
|
12 | | -fromgitimport ( |
| 12 | +fromgit.objectsimport ( |
13 | 13 | Blob, |
14 | 14 | Tree, |
15 | 15 | Commit, |
|
18 | 18 | fromgit.compatimportis_win |
19 | 19 | fromgit.objects.utilimportget_object_type_by_name |
20 | 20 | fromtest.libimport ( |
21 | | -TestBase, |
| 21 | +TestBaseas_TestBase, |
22 | 22 | with_rw_repo, |
23 | 23 | with_rw_and_rw_remote_repo |
24 | 24 | ) |
25 | | -fromgit.utilimporthex_to_bin |
| 25 | +fromgit.utilimporthex_to_bin,HIDE_WINDOWS_FREEZE_ERRORS |
26 | 26 |
|
27 | 27 | importgit.objects.baseasbase |
28 | 28 | importos.pathasosp |
29 | 29 |
|
30 | 30 |
|
31 | | -classTestBase(TestBase): |
| 31 | +classTestBase(_TestBase): |
32 | 32 |
|
33 | 33 | deftearDown(self): |
34 | 34 | importgc |
@@ -111,15 +111,13 @@ def test_with_rw_repo(self, rw_repo): |
111 | 111 | assertnotrw_repo.config_reader("repository").getboolean("core","bare") |
112 | 112 | assertosp.isdir(osp.join(rw_repo.working_tree_dir,'lib')) |
113 | 113 |
|
114 | | -#@skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes! sometimes...") |
| 114 | +@skipIf(HIDE_WINDOWS_FREEZE_ERRORS,"FIXME: Freezes! sometimes...") |
115 | 115 | @with_rw_and_rw_remote_repo('0.1.6') |
116 | 116 | deftest_with_rw_remote_and_rw_repo(self,rw_repo,rw_remote_repo): |
117 | 117 | assertnotrw_repo.config_reader("repository").getboolean("core","bare") |
118 | 118 | assertrw_remote_repo.config_reader("repository").getboolean("core","bare") |
119 | 119 | assertosp.isdir(osp.join(rw_repo.working_tree_dir,'lib')) |
120 | 120 |
|
121 | | -@skipIf(sys.version_info< (3,)andis_win, |
122 | | -"Unicode woes, see https://github.com/gitpython-developers/GitPython/pull/519") |
123 | 121 | @with_rw_repo('0.1.6') |
124 | 122 | deftest_add_unicode(self,rw_repo): |
125 | 123 | filename="שלום.txt" |
|