diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-15 20:48:56 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-15 20:48:56 -0500 |
| commit | 8d8f9e51f09e1aee2e01b996734588ab9ef91b4c (patch) | |
| tree | 6ffd34a4aff7a471cfd972b37df366fe3a557054 | |
| parent | b4675031ed9b2313e9df5cd73dc2575bec67192b (diff) | |
| download | pyramid-8d8f9e51f09e1aee2e01b996734588ab9ef91b4c.tar.gz pyramid-8d8f9e51f09e1aee2e01b996734588ab9ef91b4c.tar.bz2 pyramid-8d8f9e51f09e1aee2e01b996734588ab9ef91b4c.zip | |
move imports to function scope (see http://docs.pylonshq.com/community/testing.html#guideline-minimize-module-scope-dependencies)
| -rw-r--r-- | pyramid/tests/test_mako_templating.py | 5 |
1 files 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({ |
