Removed obsolete hack to run template tests.

This commit is contained in:
Aymeric Augustin 2014-03-02 14:55:37 +01:00
parent 06615d0d6e
commit 3a34f71d4d
1 changed files with 1 additions and 7 deletions

View File

@ -1,13 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals from __future__ import unicode_literals
from django.conf import settings
if __name__ == '__main__':
# When running this file in isolation, we need to set up the configuration
# before importing 'template'.
settings.configure()
from datetime import date, datetime from datetime import date, datetime
import os import os
import sys import sys
@ -16,6 +9,7 @@ import unittest
import warnings import warnings
from django import template from django import template
from django.conf import settings
from django.core import urlresolvers from django.core import urlresolvers
from django.template import (base as template_base, loader, Context, from django.template import (base as template_base, loader, Context,
RequestContext, Template, TemplateSyntaxError) RequestContext, Template, TemplateSyntaxError)