Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #12562: Made Platypus just a tad lighter so it does not…

… trigger noticing version-dependent differences in Ptyhon string/float conversions.

r12132 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 03d57f0a82fb0997ef66adbab720a5597cbfe78c 1 parent 4bbbf6c
Karen Tracey authored
4  tests/regressiontests/fixtures_regress/models.py
@@ -82,7 +82,7 @@ class Meta:
82 82
 # Create a new animal. Without a sequence reset, this new object
83 83
 # will take a PK of 1 (on Postgres), and the save will fail.
84 84
 # This is a regression test for ticket #3790.
85  
->>> animal = Animal(name='Platypus', latin_name='Ornithorhynchus anatinus', count=2, weight=2.3)
  85
+>>> animal = Animal(name='Platypus', latin_name='Ornithorhynchus anatinus', count=2, weight=2.2)
86 86
 >>> animal.save()
87 87
 
88 88
 ###############################################
@@ -176,7 +176,7 @@ class Meta:
176 176
 # Regression for #11286 -- Ensure that dumpdata honors the default manager
177 177
 # Dump the current contents of the database as a JSON fixture
178 178
 >>> management.call_command('dumpdata', 'fixtures_regress.animal', format='json')
179  
-[{"pk": 1, "model": "fixtures_regress.animal", "fields": {"count": 3, "weight": 1.2, "name": "Lion", "latin_name": "Panthera leo"}}, {"pk": 2, "model": "fixtures_regress.animal", "fields": {"count": 2, "weight": 2.29..., "name": "Platypus", "latin_name": "Ornithorhynchus anatinus"}}, {"pk": 10, "model": "fixtures_regress.animal", "fields": {"count": 42, "weight": 1.2, "name": "Emu", "latin_name": "Dromaius novaehollandiae"}}]
  179
+[{"pk": 1, "model": "fixtures_regress.animal", "fields": {"count": 3, "weight": 1.2, "name": "Lion", "latin_name": "Panthera leo"}}, {"pk": 2, "model": "fixtures_regress.animal", "fields": {"count": 2, "weight": 2.2, "name": "Platypus", "latin_name": "Ornithorhynchus anatinus"}}, {"pk": 10, "model": "fixtures_regress.animal", "fields": {"count": 42, "weight": 1.2, "name": "Emu", "latin_name": "Dromaius novaehollandiae"}}]
180 180
 
181 181
 ###############################################
182 182
 # Regression for #11428 - Proxy models aren't included

0 notes on commit 03d57f0

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