Skip to content

Commit 7c0f05a

Browse files
committed
Fix tests on django 1.6
1 parent 910ce79 commit 7c0f05a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/testapp/tests/test_lock_mixin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import unittest
2+
3+
import django
14
from django.db import models
25
from django.test import TestCase
36
from django_fsm import FSMField, ConcurrentTransitionMixin, ConcurrentTransition, transition
@@ -87,6 +90,7 @@ def test_inheritance_crud_succeed(self):
8790
self.assertEqual('rejected', post.review_state)
8891
self.assertEqual('test_inheritance_crud_succeed2', post.text)
8992

93+
@unittest.skipIf(django.VERSION[:3] < (1, 8, 0), "Available on django 1.8+")
9094
def test_concurrent_modifications_after_refresh_db_succeed(self): # bug 255
9195
post1 = LockedBlogPost.objects.create()
9296
post2 = LockedBlogPost.objects.get(pk=post1.pk)

0 commit comments

Comments
 (0)