From owner-svn-ports-head@freebsd.org Sat Jan 13 11:33:46 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83349EB4A3D; Sat, 13 Jan 2018 11:33:46 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E8DF81CFA; Sat, 13 Jan 2018 11:33:46 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9FA641254B; Sat, 13 Jan 2018 11:33:45 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0DBXjYf007715; Sat, 13 Jan 2018 11:33:45 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0DBXjqm007714; Sat, 13 Jan 2018 11:33:45 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201801131133.w0DBXjqm007714@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Sat, 13 Jan 2018 11:33:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458927 - head/devel/py-codecov/files X-SVN-Group: ports-head X-SVN-Commit-Author: cpm X-SVN-Commit-Paths: head/devel/py-codecov/files X-SVN-Commit-Revision: 458927 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jan 2018 11:33:46 -0000 Author: cpm Date: Sat Jan 13 11:33:45 2018 New Revision: 458927 URL: https://svnweb.freebsd.org/changeset/ports/458927 Log: Fix python test suite Modified: head/devel/py-codecov/files/patch-tests_test.py Modified: head/devel/py-codecov/files/patch-tests_test.py ============================================================================== --- head/devel/py-codecov/files/patch-tests_test.py Sat Jan 13 11:25:40 2018 (r458926) +++ head/devel/py-codecov/files/patch-tests_test.py Sat Jan 13 11:33:45 2018 (r458927) @@ -1,11 +1,22 @@ ---- tests/test.py.orig 2018-01-08 10:57:15 UTC +--- tests/test.py.orig 2018-01-13 11:23:57 UTC +++ tests/test.py +@@ -2,9 +2,9 @@ import os + import sys + import pickle + import itertools ++import unittest + from ddt import ddt, data + from mock import patch, Mock +-import unittest2 as unittest + + import subprocess + @@ -134,7 +134,7 @@ class TestUploader(unittest.TestCase): self.assertEqual(codecov.main(), None) assert post.called and put.called - @unittest.skipIf(os.getenv('CI') == "True" and os.getenv('APPVEYOR') == 'True', 'Skip AppVeyor CI test') -+ @unittest.skipIf(sys.platform.startswith('freebsd'),'Skip test') ++ @unittest.skip('Skip AppVeyor test') def test_send(self): with patch('requests.post') as post: with patch('requests.put') as put: @@ -14,7 +25,7 @@ raise Exception("Did not raise AssertionError") - @unittest.skipIf(os.getenv('CI') == "True" and os.getenv('APPVEYOR') == 'True', 'Skip AppVeyor CI test') -+ @unittest.skipIf(sys.platform.startswith('freebsd'),'Skip test') ++ @unittest.skip('Skip AppVeyor test') def test_bowerrc_none(self): with open(self.bowerrc, 'w+') as f: f.write('{"other_key": "tests"}')