From 42875fa746897fe5bcb21de4fd80f56a55567975 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Sat, 29 Sep 2018 18:09:59 -0400 Subject: [PATCH] selftests/unit/test_loader.py: use utility method _check_discovery() Signed-off-by: Cleber Rosa --- selftests/unit/test_loader.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/selftests/unit/test_loader.py b/selftests/unit/test_loader.py index 95a9764a..17599cdc 100644 --- a/selftests/unit/test_loader.py +++ b/selftests/unit/test_loader.py @@ -503,12 +503,7 @@ class LoaderTest(unittest.TestCase): ('DiscoverMe2', 'selftests/.data/loader_instrumented/dont_crash.py:DiscoverMe2.test'), ('DiscoverMe3', 'selftests/.data/loader_instrumented/dont_crash.py:DiscoverMe3.test'), ('DiscoverMe4', 'selftests/.data/loader_instrumented/dont_crash.py:DiscoverMe4.test')] - for exp, tst in zip(exps, tests): - # Test class - self.assertEqual(tst[0], exp[0]) - # Test name (path) - # py2 reports relpath, py3 abspath - self.assertEqual(os.path.abspath(tst[1]['name']), os.path.abspath(exp[1])) + self._check_discovery(exps, tests) def test_double_import(self): path = os.path.join(os.path.dirname(os.path.dirname(__file__)), -- GitLab