Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed some model saves from [8102] which were causing test failures…

… under Postgres. Thanks to Ramiro Morales for the report (via IRC).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 12eba9efc1eadcca4dcb55fdf0035a8893322062 1 parent 830b750
Russell Keith-Magee authored July 27, 2008
4  tests/regressiontests/model_fields/models.py
@@ -49,25 +49,21 @@ class Whiz(models.Model):
49 49
 
50 50
 # Test a top level value
51 51
 >>> w.c = 0
52  
->>> w.save()
53 52
 >>> w.get_c_display()
54 53
 u'Other'
55 54
 
56 55
 # Test an invalid data value
57 56
 >>> w.c = 9
58  
->>> w.save()
59 57
 >>> w.get_c_display()
60 58
 9
61 59
 
62 60
 # Test a blank data value
63 61
 >>> w.c = None
64  
->>> w.save()
65 62
 >>> print w.get_c_display()
66 63
 None
67 64
 
68 65
 # Test an empty data value
69 66
 >>> w.c = ''
70  
->>> w.save()
71 67
 >>> w.get_c_display()
72 68
 u''
73 69
 

0 notes on commit 12eba9e

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