File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Submodule gitdb updated
1 file Original file line number Diff line number Diff line change 88from git .util import to_native_path_linux , join_path_native
99import shutil
1010import git
11+ import sys
1112import os
1213
14+ # Change the configuration if possible to prevent the underlying memory manager
15+ # to keep file handles open. On windows we get problems as they are not properly
16+ # closed due to mmap bugs on windows (as it appears)
17+ if sys .platform == 'win32' :
18+ try :
19+ import smmap .util
20+ smmap .util .MapRegion ._test_read_into_memory = True
21+ except ImportError :
22+ sys .stderr .write ("The submodule tests will fail as some files cannot be removed due to open file handles.\n " )
23+ sys .stderr .write ("The latest version of gitdb uses a memory map manager which can be configured to work around this problem" )
24+ #END handle windows platform
25+
26+
1327class TestRootProgress (RootUpdateProgress ):
1428 """Just prints messages, for now without checking the correctness of the states"""
1529
You can’t perform that action at this time.
0 commit comments