Ticket #16925: fix-signal-disconnect.patch

File fix-signal-disconnect.patch, 729 bytes (added by adsworth, 4 years ago)
  • tests/regressiontests/fixtures_regress/tests.py

    diff --git a/tests/regressiontests/fixtures_regress/tests.py b/tests/regressiontests/fixtures_regress/tests.py
    index 575983b..05dabb1 100644
    a b class TestFixtures(TestCase): 
    283283            verbosity=0,
    284284            commit=False,
    285285        )
     286        signals.pre_save.disconnect(animal_pre_save_check)
    286287        self.assertEqual(
    287288            pre_save_checks,
    288289            [
    289290                ("Count = 42 (<type 'int'>)", "Weight = 1.2 (<type 'float'>)")
    290291            ]
    291292        )
    292         signals.pre_save.disconnect(animal_pre_save_check)
    293293
    294294    def test_dumpdata_uses_default_manager(self):
    295295        """
Back to Top