Ticket #13390: 13390.tests.patch

File 13390.tests.patch, 670 bytes (added by Gregor Müllegger, 15 years ago)

Failing test.

  • tests/regressiontests/forms/widgets.py

    === modified file 'tests/regressiontests/forms/widgets.py'
     
    13091309        # w2 ought to be independent of w1, since MultiWidget ought
    13101310        # to make a copy of its sub-widgets when it is copied.
    13111311        self.assertEqual(w1.choices, [1,2,3])
     1312
     1313    def test_13390(self):
     1314        # See ticket #13390
     1315        class SplitDateForm(forms.Form):
     1316            field = forms.DateTimeField(widget=forms.SplitDateTimeWidget, required=False)
     1317
     1318        form = SplitDateForm({})
     1319        self.assertTrue(form.is_valid())
Back to Top