From 8d8f9e51f09e1aee2e01b996734588ab9ef91b4c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 15 Dec 2010 20:48:56 -0500 Subject: move imports to function scope (see http://docs.pylonshq.com/community/testing.html#guideline-minimize-module-scope-dependencies) --- pyramid/tests/test_mako_templating.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyramid/tests/test_mako_templating.py b/pyramid/tests/test_mako_templating.py index 85423b588..30ccef0a5 100644 --- a/pyramid/tests/test_mako_templating.py +++ b/pyramid/tests/test_mako_templating.py @@ -3,9 +3,6 @@ import unittest from pyramid import testing -import sys -import os.path - class Base(object): def setUp(self): self.config = testing.setUp() @@ -63,6 +60,8 @@ class Test_renderer_factory(Base, unittest.TestCase): self.assertEqual(lookup.directories, [self.templates_dir]*2) def test_directories_list(self): + import sys + import os.path from pyramid.mako_templating import IMakoLookup settings = {'mako.directories':['a', 'b']} info = DummyRendererInfo({ -- cgit v1.2.3