diff --git a/selftests/unit/test_loader.py b/selftests/unit/test_loader.py index 95a9764a0ca12d749f9257a72f49600e98d7c207..17599cdc42740ca069c3aeafde3ddcd4082d1033 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__)),