Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit b131561112c6e48cc73f692d022f8911ca74eb38 1 parent 829c5fd
Russell Keith-Magee authored April 21, 2010
9  tests/regressiontests/forms/localflavor/se.py
@@ -8,12 +8,11 @@
8 8
 ...     def today(cls):
9 9
 ...         return datetime.date(2008, 5, 14)
10 10
 ...     today = classmethod(today)
11  
-... 
  11
+...
12 12
 >>> olddate = datetime.date
13 13
 >>> datetime.date = MockDate
14  
->>> datetime.date.today()
15  
-MockDate(2008, 5, 14)
16  
-
  14
+>>> datetime.date.today() == olddate(2008, 5, 14)
  15
+True
17 16
 
18 17
 # SECountySelect #####################################################
19 18
 >>> from django.contrib.localflavor.se.forms import SECountySelect
@@ -245,7 +244,7 @@
245 244
 ValidationError: [u'Enter a valid Swedish personal identity number.']
246 245
 
247 246
 
248  
-# Check valid co-ordination numbers, that should not be accepted 
  247
+# Check valid co-ordination numbers, that should not be accepted
249 248
 # because of coordination_number=False
250 249
 >>> f = SEPersonalIdentityNumberField(coordination_number=False)
251 250
 

0 notes on commit b131561

Please sign in to comment.
Something went wrong with that request. Please try again.