summaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-10-22 16:41:31 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-10-22 16:41:31 +0200
commit5149c807ec5f396c1114851ffbd0f88d65d4c84f (patch)
treeb951489a2c213db08a4d09df52740c5d53f11a8d /git/test/test_submodule.py
parent8c3a6889b654892b3636212b880fa50df0358679 (diff)
parent9db2ff10e59b2657220d1804df19fcf946539385 (diff)
downloadgitpython-5149c807ec5f396c1114851ffbd0f88d65d4c84f.tar.gz
Merge branch 'win_mmap' of https://github.com/ankostis/GitPython into ankostis-win_mmap
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r--git/test/test_submodule.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py
index 0ebd9ec7..7b05f49a 100644
--- a/git/test/test_submodule.py
+++ b/git/test/test_submodule.py
@@ -7,7 +7,7 @@ from unittest.case import skipIf
import git
from git.cmd import Git
-from git.compat import string_types, is_win
+from git.compat import string_types
from git.exc import (
InvalidGitRepositoryError,
RepositoryDirtyError
@@ -28,20 +28,6 @@ from git.util import to_native_path_linux, join_path_native
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"""