Skip to content

Commit 6a3c95b

Browse files
committed
test, #519: No remote TCs, git-daemon cannot die@!
1 parent 618e625 commit 6a3c95b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

‎.appveyor.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install:
3030
- |
3131
uname -a
3232
where git
33-
where python pip pip2 pip3 pip34 pip35 pip36
33+
where python pip
3434
python --version
3535
python -c "import struct; print(struct.calcsize('P') * 8)"
3636
@@ -66,7 +66,6 @@ build: false
6666

6767
test_script:
6868
- nosetests -v
69-
- echo OK
7069

7170
#on_success:
7271
# - IF "%PYTHON_VERSION%"=="3.4" (coveralls)

‎git/test/test_base.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def test_with_rw_repo(self, rw_repo):
112112
assertnotrw_repo.config_reader("repository").getboolean("core", "bare")
113113
assertos.path.isdir(os.path.join(rw_repo.working_tree_dir, 'lib'))
114114

115+
@skipIf(is_win(), "git-daemon proc stuck on Appveyor!")
115116
@with_rw_and_rw_remote_repo('0.1.6')
116117
deftest_with_rw_remote_and_rw_repo(self, rw_repo, rw_remote_repo):
117118
assertnotrw_repo.config_reader("repository").getboolean("core", "bare")

‎git/test/test_remote.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
GitCommandError
2727
)
2828
fromgit.utilimportIterableList
29-
fromgit.compatimportstring_types
29+
fromgit.compatimportstring_types, is_win
30+
fromunittestimportskipIf
3031
importtempfile
3132
importshutil
3233
importos
@@ -99,6 +100,7 @@ def assert_received_message(self):
99100
assertself._num_progress_messages
100101

101102

103+
@skipIf(is_win(), "git-daemon proc stuck on Appveyor!")
102104
classTestRemote(TestBase):
103105

104106
deftearDown(self):
@@ -407,7 +409,7 @@ def test_base(self, rw_repo, remote_repo):
407409

408410
# OPTIONS
409411
# cannot use 'fetch' key anymore as it is now a method
410-
foroptin ("url",):
412+
foroptin ("url",):
411413
val=getattr(remote, opt)
412414
reader=remote.config_reader
413415
assertreader.get(opt) ==val

0 commit comments

Comments
(0)