Skip to content

Commit 1d6d9a7

Browse files
authored
Skip failing test if platform.dist() is Xenial
Fixes gitpython-developers#827
1 parent 7a6ca8c commit 1d6d9a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: git/test/test_remote.py

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# This module is part of GitPython and is released under
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66

7+
import platform
78
import random
89
import tempfile
910
from unittest import skipIf
@@ -34,6 +35,7 @@
3435
from git.util import IterableList, rmtree, HIDE_WINDOWS_FREEZE_ERRORS
3536
import os.path as osp
3637

38+
IS_DIST_XENIAL = 'stretch' in platform.dist()[1]
3739

3840
# assure we have repeatable results
3941
random.seed(0)
@@ -398,6 +400,7 @@ def _assert_push_and_pull(self, remote, rw_repo, remote_repo):
398400
remote.push(":%s" % other_tag.path)
399401

400402
@skipIf(HIDE_WINDOWS_FREEZE_ERRORS, "FIXME: Freezes!")
403+
@skipIf(IS_DIST_XENIAL, "Test fails when dist is Xenial. #827")
401404
@with_rw_and_rw_remote_repo('0.1.6')
402405
def test_base(self, rw_repo, remote_repo):
403406
num_remotes = 0

0 commit comments

Comments
 (0)