Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the tests from [8033] to work for the PostgreSQL backends (the …

…primary

key value isn't guaranteed to be the same across all backends). Still some
breakage on MySQL because of the way it treats booleans, but that's another
issue.

Refs #6755.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e9587fd6b180d0a752ae77d3adb5e7966cb65b4 1 parent 6ef47cf
Malcolm Tredinnick authored July 22, 2008
18  tests/regressiontests/model_inheritance_regress/models.py
@@ -162,16 +162,14 @@ class Child(Parent):
162 162
 # Regression test for #6755
163 163
 >>> r = Restaurant(serves_pizza=False)
164 164
 >>> r.save()
165  
->>> r.id
166  
-3
167  
->>> r.place_ptr_id
168  
-3
169  
->>> r = Restaurant(place_ptr_id=3, serves_pizza=True)
  165
+>>> r.id == r.place_ptr_id
  166
+True
  167
+>>> orig_id = r.id
  168
+>>> r = Restaurant(place_ptr_id=orig_id, serves_pizza=True)
170 169
 >>> r.save()
171  
->>> r.id
172  
-3
173  
->>> r.place_ptr_id
174  
-3
175  
-
  170
+>>> r.id == orig_id
  171
+True
  172
+>>> r.id == r.place_ptr_id
  173
+True
176 174
 
177 175
 """}

0 notes on commit 0e9587f

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