|
38 | 38 | importos.pathasosp |
39 | 39 |
|
40 | 40 |
|
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 | | - |
55 | 41 | classTestRootProgress(RootUpdateProgress): |
56 | 42 |
|
57 | 43 | """Just prints messages, for now without checking the correctness of the states""" |
|