Kaydet (Commit) 2139e09d authored tarafından Preston Timmons's avatar Preston Timmons Kaydeden (comit) Claude Paroz

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.
üst 18d962f2
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__))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment