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.
This commit is contained in:
Preston Timmons 2013-12-31 14:47:14 -06:00 committed by Claude Paroz
parent 18d962f2e6
commit 2139e09d83
1 changed files with 1 additions and 8 deletions

View File

@ -1,18 +1,11 @@
from contextlib import contextmanager from contextlib import contextmanager
import os import os
from unittest import expectedFailure, TestSuite, TextTestRunner, defaultTestLoader from unittest import TestSuite, TextTestRunner, defaultTestLoader
from django.test import TestCase from django.test import TestCase
from django.test.runner import DiscoverRunner 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 @contextmanager
def change_cwd(directory): def change_cwd(directory):
current_dir = os.path.abspath(os.path.dirname(__file__)) current_dir = os.path.abspath(os.path.dirname(__file__))