From 2139e09d83aa40fa12d2a0b726d21521eec86583 Mon Sep 17 00:00:00 2001 From: Preston Timmons Date: Tue, 31 Dec 2013 14:47:14 -0600 Subject: [PATCH] Removed unused function in test_runner tests This was used for python 2.6 and unittest2 compatibility. It was forgotten when the code that used it was removed. --- tests/test_runner/test_discover_runner.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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__))