svn commit: r458927 - head/devel/py-codecov/files
Carlos J. Puga Medina
cpm at FreeBSD.org
Sat Jan 13 11:33:46 UTC 2018
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"}')
More information about the svn-ports-all
mailing list