diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-04-21 11:33:39 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-04-21 11:33:39 +0000 |
| commit | b131561112c6e48cc73f692d022f8911ca74eb38 (patch) | |
| tree | 4a533ffd378c95f3d6b499e9c7bfde2e70ff347c | |
| parent | 829c5fdbeeb40e6bcfa5bf296363cd91f2ae445f (diff) | |
Fixed #13374 -- Modified a test so that it can pass under PyPy. This is a reimplementation of part of r12998, reverted in r13008. Thanks to Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/forms/localflavor/se.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/regressiontests/forms/localflavor/se.py b/tests/regressiontests/forms/localflavor/se.py index 44bd953c6e..316a612f85 100644 --- a/tests/regressiontests/forms/localflavor/se.py +++ b/tests/regressiontests/forms/localflavor/se.py @@ -8,12 +8,11 @@ tests = r""" ... def today(cls): ... return datetime.date(2008, 5, 14) ... today = classmethod(today) -... +... >>> olddate = datetime.date >>> datetime.date = MockDate ->>> datetime.date.today() -MockDate(2008, 5, 14) - +>>> datetime.date.today() == olddate(2008, 5, 14) +True # SECountySelect ##################################################### >>> from django.contrib.localflavor.se.forms import SECountySelect @@ -245,7 +244,7 @@ Traceback (most recent call last): ValidationError: [u'Enter a valid Swedish personal identity number.'] -# Check valid co-ordination numbers, that should not be accepted +# Check valid co-ordination numbers, that should not be accepted # because of coordination_number=False >>> f = SEPersonalIdentityNumberField(coordination_number=False) |
