Skip to content

Commit e014345

Browse files
committed
fixed import unittest for python 2.6
1 parent 1641256 commit e014345

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/urls.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import sys
12
import uuid
2-
import unittest
33

44
from django.conf.urls import include
55

6+
if sys.version_info >= (2, 7):
7+
import unittest
8+
else:
9+
from django.utils import unittest
10+
611
from macrosurl import MacroUrlPattern, url
712

813

0 commit comments

Comments
 (0)