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

Commit3910abf

Browse files
committed
submodule-TCs: stop monekypatching smmap.MapRegion with files in Windows
Obviously it is not needed anymore, or nothing is worse without thismonkeypatch.
1 parentcaa0ea7 commit3910abf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

‎git/test/test_submodule.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,6 @@
3838
importos.pathasosp
3939

4040

41-
# Change the configuration if possible to prevent the underlying memory manager
42-
# to keep file handles open. On windows we get problems as they are not properly
43-
# closed due to mmap bugs on windows (as it appears)
44-
ifis_win:
45-
try:
46-
importsmmap.util# @UnusedImport
47-
smmap.util.MapRegion._test_read_into_memory=True
48-
exceptImportError:
49-
sys.stderr.write("The submodule tests will fail as some files cannot be removed due to open file handles.\n")
50-
sys.stderr.write(
51-
"The latest version of gitdb uses a memory map manager which can be configured to work around this problem")
52-
# END handle windows platform
53-
54-
5541
classTestRootProgress(RootUpdateProgress):
5642

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp