Skip to content

Commit

Permalink
Fixed #3768 -- Disabled NullBooleanField PK serialization test. We ca…
Browse files Browse the repository at this point in the history
…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
freakboy3742 committed Jul 12, 2007
1 parent 7a198f5 commit 81d313c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/regressiontests/serializers_regress/models.py
Expand Up @@ -176,8 +176,9 @@ class IntegerPKData(models.Model):
class IPAddressPKData(models.Model):
data = models.IPAddressField(primary_key=True)

class NullBooleanPKData(models.Model):
data = models.NullBooleanField(primary_key=True)
# This is just a Boolean field with null=True, and we can't test a PK value of NULL.
# class NullBooleanPKData(models.Model):
# data = models.NullBooleanField(primary_key=True)

class PhonePKData(models.Model):
data = models.PhoneNumberField(primary_key=True)
Expand Down
4 changes: 2 additions & 2 deletions tests/regressiontests/serializers_regress/tests.py
Expand Up @@ -236,8 +236,8 @@ def pk_compare(testcase, pk, klass, data):
(pk_obj, 682, IntegerPKData, 0),
# (XX, ImagePKData
(pk_obj, 690, IPAddressPKData, "127.0.0.1"),
(pk_obj, 700, NullBooleanPKData, True),
(pk_obj, 701, NullBooleanPKData, False),
# (pk_obj, 700, NullBooleanPKData, True),
# (pk_obj, 701, NullBooleanPKData, False),
(pk_obj, 710, PhonePKData, "212-634-5789"),
(pk_obj, 720, PositiveIntegerPKData, 123456789),
(pk_obj, 730, PositiveSmallIntegerPKData, 12),
Expand Down

0 comments on commit 81d313c

Please sign in to comment.