summaryrefslogtreecommitdiff
path: root/tests/fixtures_model_package
diff options
context:
space:
mode:
authorSenko Rasic <senko.rasic@dobarkod.hr>2013-05-19 12:49:03 +0200
committerSenko Rasic <senko.rasic@dobarkod.hr>2013-05-19 12:49:03 +0200
commit65c557115f6e76293c39ce7b73b62216911f9489 (patch)
treee69a40aae35a3358a6cab20f71adf03520ec6189 /tests/fixtures_model_package
parentc44a2c40fe0ed79b0fa00233a204d41e9c677750 (diff)
fix warnings imports in fixtures tests
Diffstat (limited to 'tests/fixtures_model_package')
-rw-r--r--tests/fixtures_model_package/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fixtures_model_package/tests.py b/tests/fixtures_model_package/tests.py
index af6b059c66..fbd0271336 100644
--- a/tests/fixtures_model_package/tests.py
+++ b/tests/fixtures_model_package/tests.py
@@ -1,5 +1,7 @@
from __future__ import unicode_literals
+import warnings
+
from django.core import management
from django.db import transaction
from django.test import TestCase, TransactionTestCase
@@ -100,7 +102,6 @@ class FixtureTestCase(TestCase):
)
# Load a fixture that doesn't exist
- import warnings
with warnings.catch_warnings(record=True):
management.call_command("loaddata", "unknown.json", verbosity=0, commit=False)