diff --git a/simple_history/tests/tests/test_utils.py b/simple_history/tests/tests/test_utils.py index eb88abc4..84fd276f 100644 --- a/simple_history/tests/tests/test_utils.py +++ b/simple_history/tests/tests/test_utils.py @@ -6,7 +6,13 @@ import django from django.contrib.auth import get_user_model from django.db import IntegrityError, transaction -from django.test import TestCase, TransactionTestCase, override_settings, tag +from django.test import ( + TestCase, + TransactionTestCase, + override_settings, + skipUnlessDBFeature, + tag, +) from django.utils import timezone from simple_history.exceptions import AlternativeManagerError, NotHistoricalModelError @@ -258,6 +264,7 @@ def test_bulk_create_history_with_duplicates_ignore_conflicts(self): self.assertEqual(PollWithUniqueQuestion.objects.count(), 2) self.assertEqual(PollWithUniqueQuestion.history.count(), 2) + @skipUnlessDBFeature("supports_update_conflicts") def test_bulk_create_history_with_duplicates_update_conflicts_create_only_field( self, ):