Commit 89219a68 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Fixed a few more cases of the tests not properly restoring sys.path (follow up on [14429]).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 7dfefa74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ from django.test import TransactionTestCase
class ProxyModelInheritanceTests(TransactionTestCase):

    def setUp(self):
        self.old_sys_path = sys.path
        self.old_sys_path = sys.path[:]
        sys.path.append(os.path.dirname(os.path.abspath(__file__)))
        self.old_installed_apps = settings.INSTALLED_APPS
        settings.INSTALLED_APPS = ('app1', 'app2')
+1 −1
Original line number Diff line number Diff line
@@ -1356,7 +1356,7 @@ class Templates(unittest.TestCase):
class TemplateTagLoading(unittest.TestCase):

    def setUp(self):
        self.old_path = sys.path
        self.old_path = sys.path[:]
        self.old_apps = settings.INSTALLED_APPS
        self.egg_dir = '%s/eggs' % os.path.dirname(__file__)
        self.old_tag_modules = template.templatetags_modules
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ class DefaultLoader(unittest.TestCase):

class EggLoader(unittest.TestCase):
    def setUp(self):
        self.old_path = sys.path
        self.old_path = sys.path[:]
        self.egg_dir = '%s/eggs' % os.path.dirname(__file__)

    def tearDown(self):