diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-22 03:40:01 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-22 12:43:49 +0200 |
commit | 3910abfc2ab12a5d5a210b71c43b7a2318311323 (patch) | |
tree | 63f809d0a9ea2d69204dcd011867cd6052d0adaf | |
parent | caa0ea7a0893fe90ea043843d4e6ad407126d7b8 (diff) | |
download | gitpython-3910abfc2ab12a5d5a210b71c43b7a2318311323.tar.gz |
submodule-TCs: stop monekypatching smmap.MapRegion with files in Windows
Obviously it is not needed anymore, or nothing is worse without this
monkeypatch.
-rw-r--r-- | git/test/test_submodule.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index fcaad04b..e9fd8153 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -38,20 +38,6 @@ from git.util import ( import os.path as osp -# Change the configuration if possible to prevent the underlying memory manager -# to keep file handles open. On windows we get problems as they are not properly -# closed due to mmap bugs on windows (as it appears) -if is_win: - try: - import smmap.util # @UnusedImport - smmap.util.MapRegion._test_read_into_memory = True - except ImportError: - sys.stderr.write("The submodule tests will fail as some files cannot be removed due to open file handles.\n") - sys.stderr.write( - "The latest version of gitdb uses a memory map manager which can be configured to work around this problem") -# END handle windows platform - - class TestRootProgress(RootUpdateProgress): """Just prints messages, for now without checking the correctness of the states""" |