Skip to content

Skip failing test if platform.dist() is Xenial #831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Skip failing test if platform.dist() is Xenial
Fixes #827
  • Loading branch information
cclauss authored Jan 21, 2019
commit 1d6d9a796f8228bd7e6ea7d03b7ec1e1f0903093
3 changes: 3 additions & 0 deletions git/test/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php

import platform
import random
import tempfile
from unittest import skipIf
Expand Down Expand Up @@ -34,6 +35,7 @@
from git.util import IterableList, rmtree, HIDE_WINDOWS_FREEZE_ERRORS
import os.path as osp

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

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

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