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:
parent
18d962f2e6
commit
2139e09d83
|
@ -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__))
|
||||
|
|
Loading…
Reference in New Issue