File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Submodule gitdb updated
1 file Original file line number Diff line number Diff line change 8
8
from git .util import to_native_path_linux , join_path_native
9
9
import shutil
10
10
import git
11
+ import sys
11
12
import os
12
13
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
+
13
27
class TestRootProgress (RootUpdateProgress ):
14
28
"""Just prints messages, for now without checking the correctness of the states"""
15
29
You can’t perform that action at this time.
0 commit comments