summaryrefslogtreecommitdiff
path: root/tests/modeltests/update_only_fields
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2013-02-08 12:12:03 -0800
committerJulien Phalip <jphalip@gmail.com>2013-02-08 12:12:03 -0800
commitdb09a2de6e1bc7121d301dad9610efcda9c7a925 (patch)
tree3313039d57cb3aefe9b4f07dbc99767aaa0811ac /tests/modeltests/update_only_fields
parent868e0f3cb4cc47418e43a08c373f0707e3cf301c (diff)
Cleaned up some lingering signals in the test suite that were causing spurious failures with Pypy and Postgres.
Diffstat (limited to 'tests/modeltests/update_only_fields')
-rw-r--r--tests/modeltests/update_only_fields/tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/modeltests/update_only_fields/tests.py b/tests/modeltests/update_only_fields/tests.py
index 9ca0f968d1..97c05ddc79 100644
--- a/tests/modeltests/update_only_fields/tests.py
+++ b/tests/modeltests/update_only_fields/tests.py
@@ -207,6 +207,9 @@ class UpdateOnlyFieldsTests(TestCase):
self.assertEqual(len(post_save_data[0]), 1)
self.assertTrue('name' in post_save_data[0])
+ pre_save.disconnect(pre_save_receiver)
+ post_save.disconnect(post_save_receiver)
+
def test_update_fields_incorrect_params(self):
s = Person.objects.create(name='Sara', gender='F')
@@ -233,6 +236,9 @@ class UpdateOnlyFieldsTests(TestCase):
self.assertEqual(len(pre_save_data), 0)
self.assertEqual(len(post_save_data), 0)
+ pre_save.disconnect(pre_save_receiver)
+ post_save.disconnect(post_save_receiver)
+
def test_num_queries_inheritance(self):
s = Employee.objects.create(name='Sara', gender='F')
s.employee_num = 1