summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-26 23:20:58 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 03:35:37 +0200
commit6a3c95b408162c78b9a4230bb4f7274a94d0add4 (patch)
treea83a13c16b5b6dce5a03a9483bd465087d20ba20
parent618e6259ef03a4b25415bae31a7540ac5eb2e38a (diff)
downloadgitpython-6a3c95b408162c78b9a4230bb4f7274a94d0add4.tar.gz
test, #519: No remote TCs, git-daemon cannot die@!
-rw-r--r--.appveyor.yml3
-rw-r--r--git/test/test_base.py1
-rw-r--r--git/test/test_remote.py6
3 files changed, 6 insertions, 4 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index b19f091f..fefd9478 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -30,7 +30,7 @@ install:
- |
uname -a
where git
- where python pip pip2 pip3 pip34 pip35 pip36
+ where python pip
python --version
python -c "import struct; print(struct.calcsize('P') * 8)"
@@ -66,7 +66,6 @@ build: false
test_script:
- nosetests -v
- - echo OK
#on_success:
# - IF "%PYTHON_VERSION%"=="3.4" (coveralls)
diff --git a/git/test/test_base.py b/git/test/test_base.py
index cf92997f..f139798b 100644
--- a/git/test/test_base.py
+++ b/git/test/test_base.py
@@ -112,6 +112,7 @@ class TestBase(TestBase):
assert not rw_repo.config_reader("repository").getboolean("core", "bare")
assert os.path.isdir(os.path.join(rw_repo.working_tree_dir, 'lib'))
+ @skipIf(is_win(), "git-daemon proc stuck on Appveyor!")
@with_rw_and_rw_remote_repo('0.1.6')
def test_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo):
assert not rw_repo.config_reader("repository").getboolean("core", "bare")
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index 70c4a596..0060b5a6 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -26,7 +26,8 @@ from git import (
GitCommandError
)
from git.util import IterableList
-from git.compat import string_types
+from git.compat import string_types, is_win
+from unittest import skipIf
import tempfile
import shutil
import os
@@ -99,6 +100,7 @@ class TestRemoteProgress(RemoteProgress):
assert self._num_progress_messages
+@skipIf(is_win(), "git-daemon proc stuck on Appveyor!")
class TestRemote(TestBase):
def tearDown(self):
@@ -407,7 +409,7 @@ class TestRemote(TestBase):
# OPTIONS
# cannot use 'fetch' key anymore as it is now a method
- for opt in ("url", ):
+ for opt in ("url",):
val = getattr(remote, opt)
reader = remote.config_reader
assert reader.get(opt) == val