summaryrefslogtreecommitdiff
path: root/tests/migrations/test_loader.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-03 18:02:59 -0500
committerTim Graham <timograham@gmail.com>2015-02-03 18:30:46 -0500
commitc0cc8f69e7abfa8578729031f97ae4b96c5cdafe (patch)
tree7d8530b7e682abda046cbd7015816d1cb5c19b24 /tests/migrations/test_loader.py
parent65e005f8cd9c656e558e53e6c8b890cd0fcc9e74 (diff)
Refactored tests that rely on an ImportError for Python 3.5 compatibility
A change in Python test discovery [1] causes the old packages that raised an error to be discovered; now we use a common directory that's ignored during discovery. Refs #23763. [1] http://bugs.python.org/issue7559
Diffstat (limited to 'tests/migrations/test_loader.py')
-rw-r--r--tests/migrations/test_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/migrations/test_loader.py b/tests/migrations/test_loader.py
index 4416a86bc9..8df7b7aa9b 100644
--- a/tests/migrations/test_loader.py
+++ b/tests/migrations/test_loader.py
@@ -159,7 +159,7 @@ class LoaderTests(TestCase):
migration_loader.get_migration_by_prefix("migrations", "blarg")
def test_load_import_error(self):
- with override_settings(MIGRATION_MODULES={"migrations": "migrations.faulty_migrations.import_error"}):
+ with override_settings(MIGRATION_MODULES={"migrations": "import_error_package"}):
with self.assertRaises(ImportError):
MigrationLoader(connection)