summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_mako_templating.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyramid/tests/test_mako_templating.py b/pyramid/tests/test_mako_templating.py
index 074d28b85..981a5056e 100644
--- a/pyramid/tests/test_mako_templating.py
+++ b/pyramid/tests/test_mako_templating.py
@@ -74,7 +74,8 @@ class Test_renderer_factory(Base, unittest.TestCase):
})
self._callFUT(info)
lookup = self.config.registry.getUtility(IMakoLookup)
- module_path = os.path.dirname(sys.modules['__main__'].__file__)
+ module_path = os.path.dirname(
+ sys.modules['__main__'].__file__).rstrip('.') # ./setup.py
self.assertEqual(lookup.directories, [
os.path.join(module_path, 'a'),
os.path.join(module_path, 'b')])