forked from github/pelican
Nitpicking - tempdir naming, also backslashes are bad
Tempdirs should have useful prefixes to aid in collecting information
about failed tests.
Implicit concatenation is better than backslash line continuation.
This commit is contained in:
parent
54ffdf8ae5
commit
edbac49f2b
4 changed files with 38 additions and 37 deletions
|
|
@ -8,8 +8,8 @@ from codecs import open
|
|||
from tempfile import mkdtemp
|
||||
from shutil import rmtree
|
||||
|
||||
from pelican.generators import ArticlesGenerator, PagesGenerator, \
|
||||
TemplatePagesGenerator
|
||||
from pelican.generators import (ArticlesGenerator, PagesGenerator,
|
||||
TemplatePagesGenerator)
|
||||
from pelican.writers import Writer
|
||||
from pelican.settings import _DEFAULT_CONFIG
|
||||
from pelican.tests.support import unittest, get_settings
|
||||
|
|
@ -219,8 +219,8 @@ class TestTemplatePagesGenerator(unittest.TestCase):
|
|||
TEMPLATE_CONTENT = "foo: {{ foo }}"
|
||||
|
||||
def setUp(self):
|
||||
self.temp_content = mkdtemp()
|
||||
self.temp_output = mkdtemp()
|
||||
self.temp_content = mkdtemp(prefix='pelicantests.')
|
||||
self.temp_output = mkdtemp(prefix='pelicantests.')
|
||||
|
||||
def tearDown(self):
|
||||
rmtree(self.temp_content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue