mirror of
https://github.com/django/django.git
synced 2025-01-27 10:39:40 +00:00
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
This commit is contained in:
parent
829c5fdbee
commit
b131561112
@ -8,12 +8,11 @@ tests = r"""
|
|||||||
... def today(cls):
|
... def today(cls):
|
||||||
... return datetime.date(2008, 5, 14)
|
... return datetime.date(2008, 5, 14)
|
||||||
... today = classmethod(today)
|
... today = classmethod(today)
|
||||||
...
|
...
|
||||||
>>> olddate = datetime.date
|
>>> olddate = datetime.date
|
||||||
>>> datetime.date = MockDate
|
>>> datetime.date = MockDate
|
||||||
>>> datetime.date.today()
|
>>> datetime.date.today() == olddate(2008, 5, 14)
|
||||||
MockDate(2008, 5, 14)
|
True
|
||||||
|
|
||||||
|
|
||||||
# SECountySelect #####################################################
|
# SECountySelect #####################################################
|
||||||
>>> from django.contrib.localflavor.se.forms import 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.']
|
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
|
# because of coordination_number=False
|
||||||
>>> f = SEPersonalIdentityNumberField(coordination_number=False)
|
>>> f = SEPersonalIdentityNumberField(coordination_number=False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user