Skip to content

Commit 635e0a5

Browse files
committed
fixed import unittest for django 1.9
1 parent 9a5a652 commit 635e0a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/urls.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import uuid
22

3+
from django import VERSION
34
from django.conf.urls import include
4-
from django.utils import unittest
5+
if VERSION < (1, 8):
6+
from django.utils import unittest
7+
else:
8+
import unittest
59

610
from macrosurl import MacroUrlPattern, url
711

0 commit comments

Comments
 (0)