diff --git a/tests/test_runner/test_discover_runner.py b/tests/test_runner/test_discover_runner.py index 0b723e3243..c0448bd43a 100644 --- a/tests/test_runner/test_discover_runner.py +++ b/tests/test_runner/test_discover_runner.py @@ -1,18 +1,11 @@ from contextlib import contextmanager import os -from unittest import expectedFailure, TestSuite, TextTestRunner, defaultTestLoader +from unittest import TestSuite, TextTestRunner, defaultTestLoader from django.test import TestCase from django.test.runner import DiscoverRunner -def expectedFailureIf(condition): - """Marks a test as an expected failure if ``condition`` is met.""" - if condition: - return expectedFailure - return lambda func: func - - @contextmanager def change_cwd(directory): current_dir = os.path.abspath(os.path.dirname(__file__))