mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Remove unused modules/variables from tests
This commit is contained in:
parent
838478d65d
commit
95860c6b1b
4 changed files with 1 additions and 5 deletions
|
|
@ -7,7 +7,6 @@ try:
|
||||||
from unittest.mock import MagicMock
|
from unittest.mock import MagicMock
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from mock import MagicMock
|
from mock import MagicMock
|
||||||
from operator import itemgetter
|
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals, absolute_import
|
from __future__ import unicode_literals, absolute_import
|
||||||
import six
|
|
||||||
import locale
|
import locale
|
||||||
|
|
||||||
from pelican.tests.support import unittest, get_settings
|
from pelican.tests.support import unittest, get_settings
|
||||||
|
|
|
||||||
|
|
@ -123,8 +123,6 @@ class TestPelican(LoggedTestCase):
|
||||||
locale_available('French'), 'French locale needed')
|
locale_available('French'), 'French locale needed')
|
||||||
def test_custom_locale_generation_works(self):
|
def test_custom_locale_generation_works(self):
|
||||||
'''Test that generation with fr_FR.UTF-8 locale works'''
|
'''Test that generation with fr_FR.UTF-8 locale works'''
|
||||||
old_locale = locale.setlocale(locale.LC_TIME)
|
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
our_locale = str('French')
|
our_locale = str('French')
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import shutil
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import locale
|
import locale
|
||||||
from sys import platform, version_info
|
from sys import platform
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
|
|
||||||
import pytz
|
import pytz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue