From 275dd4ebbabbbe758c7219a3d666953d5a7b072f Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 10 Dec 2020 18:00:57 +0100 Subject: Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. Co-authored-by: Tim Graham --- tests/model_fields/test_integerfield.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests/model_fields/test_integerfield.py') diff --git a/tests/model_fields/test_integerfield.py b/tests/model_fields/test_integerfield.py index 13b18d967c..af5a9f2e35 100644 --- a/tests/model_fields/test_integerfield.py +++ b/tests/model_fields/test_integerfield.py @@ -1,5 +1,3 @@ -import unittest - from django.core import validators from django.core.exceptions import ValidationError from django.db import IntegrityError, connection, models @@ -192,7 +190,6 @@ class PositiveIntegerFieldTests(IntegerFieldTests): else models.IntegerField ) - @unittest.skipIf(connection.vendor == 'sqlite', "SQLite doesn't have a constraint.") def test_negative_values(self): p = PositiveIntegerModel.objects.create(value=0) p.value = models.F('value') - 1 -- cgit v1.3