Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3768 -- Disabled NullBooleanField PK serialization test. We ca…

…n't and don't test null PK values.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 81d313c9b147dbacb00ecab81a7d8ab08937d26b 1 parent 7a198f5
Russell Keith-Magee authored July 12, 2007
5  tests/regressiontests/serializers_regress/models.py
@@ -176,8 +176,9 @@ class IntegerPKData(models.Model):
176 176
 class IPAddressPKData(models.Model):
177 177
     data = models.IPAddressField(primary_key=True)
178 178
 
179  
-class NullBooleanPKData(models.Model):
180  
-    data = models.NullBooleanField(primary_key=True)
  179
+# This is just a Boolean field with null=True, and we can't test a PK value of NULL.
  180
+# class NullBooleanPKData(models.Model):
  181
+#     data = models.NullBooleanField(primary_key=True)
181 182
 
182 183
 class PhonePKData(models.Model):
183 184
     data = models.PhoneNumberField(primary_key=True)
4  tests/regressiontests/serializers_regress/tests.py
@@ -236,8 +236,8 @@ def pk_compare(testcase, pk, klass, data):
236 236
     (pk_obj, 682, IntegerPKData, 0),
237 237
 #     (XX, ImagePKData
238 238
     (pk_obj, 690, IPAddressPKData, "127.0.0.1"),
239  
-    (pk_obj, 700, NullBooleanPKData, True),
240  
-    (pk_obj, 701, NullBooleanPKData, False),
  239
+    # (pk_obj, 700, NullBooleanPKData, True),
  240
+    # (pk_obj, 701, NullBooleanPKData, False),
241 241
     (pk_obj, 710, PhonePKData, "212-634-5789"),
242 242
     (pk_obj, 720, PositiveIntegerPKData, 123456789),
243 243
     (pk_obj, 730, PositiveSmallIntegerPKData, 12),

0 notes on commit 81d313c

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