|
9 | 9 | import tempfile |
10 | 10 | from unittest import SkipTest, skipIf |
11 | 11 |
|
12 | | -from git import ( |
| 12 | +from git.objects import ( |
13 | 13 | Blob, |
14 | 14 | Tree, |
15 | 15 | Commit, |
|
18 | 18 | from git.compat import is_win |
19 | 19 | from git.objects.util import get_object_type_by_name |
20 | 20 | from test.lib import ( |
21 | | - TestBase, |
| 21 | + TestBase as _TestBase, |
22 | 22 | with_rw_repo, |
23 | 23 | with_rw_and_rw_remote_repo |
24 | 24 | ) |
25 | | -from git.util import hex_to_bin |
| 25 | +from git.util import hex_to_bin, HIDE_WINDOWS_FREEZE_ERRORS |
26 | 26 |
|
27 | 27 | import git.objects.base as base |
28 | 28 | import os.path as osp |
29 | 29 |
|
30 | 30 |
|
31 | | -class TestBase(TestBase): |
| 31 | +class TestBase(_TestBase): |
32 | 32 |
|
33 | 33 | def tearDown(self): |
34 | 34 | import gc |
@@ -111,15 +111,13 @@ def test_with_rw_repo(self, rw_repo): |
111 | 111 | assert not rw_repo.config_reader("repository").getboolean("core", "bare") |
112 | 112 | assert osp.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 | def test_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo): |
117 | 117 | assert not rw_repo.config_reader("repository").getboolean("core", "bare") |
118 | 118 | assert rw_remote_repo.config_reader("repository").getboolean("core", "bare") |
119 | 119 | assert osp.isdir(osp.join(rw_repo.working_tree_dir, 'lib')) |
120 | 120 |
|
121 | | - @skipIf(sys.version_info < (3,) and is_win, |
122 | | - "Unicode woes, see https://github.com/gitpython-developers/GitPython/pull/519") |
123 | 121 | @with_rw_repo('0.1.6') |
124 | 122 | def test_add_unicode(self, rw_repo): |
125 | 123 | filename = "שלום.txt" |
|
0 commit comments