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