Skip to content

Commit 311fba4

Browse files
committed
tests fixes
1 parent 4dcef63 commit 311fba4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
import sys
33
import uuid
44

5-
import django
65
from django.conf.urls import include
76

87
from macrosurl import MacroUrlPattern, url
98

109
if sys.version_info >= (2, 7):
10+
import django
1111
import unittest
12+
13+
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
14+
django.setup()
1215
else:
1316
from django.utils import unittest
1417

15-
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
16-
django.setup()
17-
1818

1919
class TestRegexCompilation(unittest.TestCase):
2020
def test_nomacro(self):

0 commit comments

Comments
 (0)