From 27500a3d9220405d57bfac4363c91de3d530e5b2 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 23 May 2017 12:10:46 +0200 Subject: [PATCH] Remove oslotest from test-requirements It is not needed and stevedore is a fundamental package which should try to keep its requirements list small. Change-Id: I701613977f6c243c13d118d8822fe5db0e12f97e --- stevedore/tests/test_callback.py | 2 +- stevedore/tests/utils.py | 4 ++-- test-requirements.txt | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/stevedore/tests/test_callback.py b/stevedore/tests/test_callback.py index 877b31e..c513aa2 100644 --- a/stevedore/tests/test_callback.py +++ b/stevedore/tests/test_callback.py @@ -32,7 +32,7 @@ class TestCallback(utils.TestCase): on_load_failure_callback= failure_callback) extensions = list(em.extensions) - self.assertThat(len(extensions), GreaterThan(0)) + self.assertTrue(len(extensions), GreaterThan(0)) self.assertEqual(len(errors), 2) for manager, entrypoint, error in errors: self.assertIs(manager, em) diff --git a/stevedore/tests/utils.py b/stevedore/tests/utils.py index 0a6cc0a..f452959 100644 --- a/stevedore/tests/utils.py +++ b/stevedore/tests/utils.py @@ -10,8 +10,8 @@ # License for the specific language governing permissions and limitations # under the License. -from oslotest import base as test_base +import unittest -class TestCase(test_base.BaseTestCase): +class TestCase(unittest.TestCase): pass diff --git a/test-requirements.txt b/test-requirements.txt index 5488850..bbd7ef8 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7,6 +7,5 @@ sphinx!=1.6.1,>=1.5.1 # BSD mock>=2.0 # BSD coverage!=4.4,>=4.0 # Apache-2.0 testrepository>=0.0.18 # Apache-2.0/BSD -oslotest>=1.10.0 # Apache-2.0 oslosphinx>=4.7.0 # Apache-2.0 reno>=1.8.0 # Apache-2.0