Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2018 11:33:45 +0000 (UTC)
From:      "Carlos J. Puga Medina" <cpm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458927 - head/devel/py-codecov/files
Message-ID:  <201801131133.w0DBXjqm007714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"}')



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801131133.w0DBXjqm007714>