From 426a8f5ff6579b3fef52919efb4e6caee18f3784 Mon Sep 17 00:00:00 2001 From: Serg Tereshchenko Date: Wed, 13 Jul 2022 19:39:16 +0300 Subject: [PATCH] cleanup: Remove obsolete skipUnless --- modeltranslation/tests/tests.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modeltranslation/tests/tests.py b/modeltranslation/tests/tests.py index 844111e..26f29e6 100644 --- a/modeltranslation/tests/tests.py +++ b/modeltranslation/tests/tests.py @@ -5,9 +5,7 @@ import os import shutil import sys from decimal import Decimal -from unittest import skipUnless -import django import pytest import six from django import forms @@ -3014,8 +3012,7 @@ class TestManager(ModeltranslationTestBase): o.title = "bla" assert o.title == "bla" - @skipUnless(django.VERSION[0] >= 2, 'Applicable only to django > 2.x') - def test_select_related_django_2(self): + def test_select_related(self): test = models.TestModel.objects.create(title_de='title_de', title_en='title_en') with auto_populate('all'): models.ForeignKeyModel.objects.create(untrans=test)