From 82ca0cff9cb2e53f21a983ae437fdf6d64de5a48 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 4 Feb 2017 16:29:59 +0800 Subject: [PATCH] skip archpkg test on Travis-CI --- .gitignore | 1 + tests/test_archpkg.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d390649..7d6ee51 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ records/ __pycache__/ /build/ .cache/ +.eggs/ *.pyc *.pyo .travis.pub diff --git a/tests/test_archpkg.py b/tests/test_archpkg.py index c4a9d1f..2a34b02 100644 --- a/tests/test_archpkg.py +++ b/tests/test_archpkg.py @@ -1,6 +1,11 @@ +import os + +import pytest + from tests.helper import ExternalVersionTestCase - +@pytest.mark.skipif("TRAVIS" in os.environ, + reason="Travis-CI has issues connecting to the Arch website") class ArchPKGTest(ExternalVersionTestCase): def test_archpkg(self): self.assertEqual(self.sync_get_version("ipw2100-fw", {"archpkg": None}), "1.3-7")