File tree Expand file tree Collapse file tree 3 files changed +1
-23
lines changed Expand file tree Collapse file tree 3 files changed +1
-23
lines changed Original file line number Diff line number Diff line change 33
44import sys
55from time import time
6- from unittest .case import skipIf
7-
8- from git .compat import PY3
9- from git .util import HIDE_WINDOWS_KNOWN_ERRORS
106
117from .lib import (
128 TestBigRepoR
1511
1612class TestObjDBPerformance (TestBigRepoR ):
1713
18- @skipIf (HIDE_WINDOWS_KNOWN_ERRORS and PY3 ,
19- "FIXME: smmp fails with: TypeError: Can't convert 'bytes' object to str implicitly" )
2014 def test_random_access (self ):
2115 results = [["Iterate Commits" ], ["Iterate Blobs" ], ["Retrieve Blob Data" ]]
2216 for repo in (self .gitrorepo , self .puregitrorepo ):
Original file line number Diff line number Diff line change @@ -808,8 +808,6 @@ def test_git_file(self, rwrepo):
808808 git_file_repo = Repo (rwrepo .working_tree_dir )
809809 self .assertEqual (osp .abspath (git_file_repo .git_dir ), real_path_abs )
810810
811- @skipIf (HIDE_WINDOWS_KNOWN_ERRORS and PY3 ,
812- "FIXME: smmp fails with: TypeError: Can't convert 'bytes' object to str implicitly" )
813811 def test_file_handle_leaks (self ):
814812 def last_commit (repo , rev , path ):
815813 commit = next (repo .iter_commits (rev , path , max_count = 1 ))
Original file line number Diff line number Diff line change 77
88import git
99from git .cmd import Git
10- from git .compat import string_types , is_win
10+ from git .compat import string_types
1111from git .exc import (
1212 InvalidGitRepositoryError ,
1313 RepositoryDirtyError
2828import os .path as osp
2929
3030
31- # Change the configuration if possible to prevent the underlying memory manager
32- # to keep file handles open. On windows we get problems as they are not properly
33- # closed due to mmap bugs on windows (as it appears)
34- if is_win :
35- try :
36- import smmap .util # @UnusedImport
37- smmap .util .MapRegion ._test_read_into_memory = True
38- except ImportError :
39- sys .stderr .write ("The submodule tests will fail as some files cannot be removed due to open file handles.\n " )
40- sys .stderr .write (
41- "The latest version of gitdb uses a memory map manager which can be configured to work around this problem" )
42- # END handle windows platform
43-
44-
4531class TestRootProgress (RootUpdateProgress ):
4632
4733 """Just prints messages, for now without checking the correctness of the states"""
You can’t perform that action at this time.
0 commit comments