diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-09-28 08:18:12 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-09-28 08:18:12 +0000 |
| commit | ec3ba39fdb9dd6b82fb790a7babff5d2c4630ad5 (patch) | |
| tree | 67120e9fa8d60ddabae5be4c8b9b86d1948067cd /tests/regressiontests/utils/module_loading.py | |
| parent | 67df1a5002f4cb136403f124d3db52d6fc805eb8 (diff) | |
A few test optimizations; using native unittest where no Django-specific TestCase features are required.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/utils/module_loading.py')
| -rw-r--r-- | tests/regressiontests/utils/module_loading.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regressiontests/utils/module_loading.py b/tests/regressiontests/utils/module_loading.py index b7df6d68b1..4422f8f5d8 100644 --- a/tests/regressiontests/utils/module_loading.py +++ b/tests/regressiontests/utils/module_loading.py @@ -1,12 +1,12 @@ import os import sys -from unittest import TestCase +import unittest from zipimport import zipimporter from django.utils.importlib import import_module from django.utils.module_loading import module_has_submodule -class DefaultLoader(TestCase): +class DefaultLoader(unittest.TestCase): def test_loader(self): "Normal module existence can be tested" test_module = import_module('regressiontests.utils.test_module') @@ -24,7 +24,7 @@ class DefaultLoader(TestCase): self.assertFalse(module_has_submodule(test_module, 'no_such_module')) self.assertRaises(ImportError, import_module, 'regressiontests.utils.test_module.no_such_module') -class EggLoader(TestCase): +class EggLoader(unittest.TestCase): def setUp(self): self.old_path = sys.path self.egg_dir = '%s/eggs' % os.path.dirname(__file__) |
