Skip failing test if platform.dist() is Xenial by cclauss · Pull Request #831 · gitpython-developers/GitPython
import platform import random import tempfile from unittest import skipIf
platform_version = platform.version() IS_DIST_XENIAL = '-Ubuntu' in platform_version and '16.04' in platform_version
# assure we have repeatable results random.seed(0)
@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