Work around coverage bug in py3 on Fedora

This commit is contained in:
Mike McLean 2017-05-18 14:54:41 -04:00 committed by Tomas Kopecek
parent 95f012b27d
commit 0661e0e3eb
3 changed files with 4 additions and 3 deletions

View file

@ -74,8 +74,6 @@ test3:
coverage erase
PYTHONPATH=hub/.:plugins/hub/.:plugins/builder/. nosetests-3 \
--with-coverage --cover-package . tests/test_lib tests/test_cli
@echo Sleeping to work around an issue
sleep 10
coverage html
@echo Coverage report in htmlcov/index.html

View file

@ -21,6 +21,7 @@
# Mike McLean <mikem@redhat.com>
# Mike Bonnet <mikeb@redhat.com>
from __future__ import absolute_import
import sys
from six.moves import range

View file

@ -6,8 +6,10 @@ import sys
import threading
import traceback
from six.moves import range
import six
# XXX remove skip when Fedora bug is fixed
@unittest.skipIf(six.PY3, "coverage bug Fedora, see rhbz#1452339")
class ProfilesTestCase(unittest.TestCase):
def test_profile_threading(self):