Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5149c80

Browse files
committed
Merge branch 'win_mmap' ofhttps://github.com/ankostis/GitPython into ankostis-win_mmap
2 parents8c3a688 +9db2ff1 commit5149c80

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

‎git/test/performance/test_odb.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
importsys
55
fromtimeimporttime
6-
fromunittest.caseimportskipIf
7-
8-
fromgit.compatimportPY3
9-
fromgit.utilimportHIDE_WINDOWS_KNOWN_ERRORS
106

117
from .libimport (
128
TestBigRepoR
@@ -15,8 +11,6 @@
1511

1612
classTestObjDBPerformance(TestBigRepoR):
1713

18-
@skipIf(HIDE_WINDOWS_KNOWN_ERRORSandPY3,
19-
"FIXME: smmp fails with: TypeError: Can't convert 'bytes' object to str implicitly")
2014
deftest_random_access(self):
2115
results= [["Iterate Commits"], ["Iterate Blobs"], ["Retrieve Blob Data"]]
2216
forrepoin (self.gitrorepo,self.puregitrorepo):

‎git/test/test_repo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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_ERRORSandPY3,
812-
"FIXME: smmp fails with: TypeError: Can't convert 'bytes' object to str implicitly")
813811
deftest_file_handle_leaks(self):
814812
deflast_commit(repo,rev,path):
815813
commit=next(repo.iter_commits(rev,path,max_count=1))

‎git/test/test_submodule.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
importgit
99
fromgit.cmdimportGit
10-
fromgit.compatimportstring_types,is_win
10+
fromgit.compatimportstring_types
1111
fromgit.excimport (
1212
InvalidGitRepositoryError,
1313
RepositoryDirtyError
@@ -28,20 +28,6 @@
2828
importos.pathasosp
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-
ifis_win:
35-
try:
36-
importsmmap.util# @UnusedImport
37-
smmap.util.MapRegion._test_read_into_memory=True
38-
exceptImportError:
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-
4531
classTestRootProgress(RootUpdateProgress):
4632

4733
"""Just prints messages, for now without checking the correctness of the states"""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp