summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-09-29 01:45:46 -0400
committerChris McDonough <chrism@plope.com>2011-09-29 01:45:46 -0400
commitb9407996975e3504f2518359640139ab51fa9c38 (patch)
tree8a17f18f318561f4fcc2a18fa64c8da1541be8eb
parentbdfb877ab4c7c2ea9f1e9fe6aacd1865612c86cc (diff)
downloadpyramid-b9407996975e3504f2518359640139ab51fa9c38.tar.gz
pyramid-b9407996975e3504f2518359640139ab51fa9c38.tar.bz2
pyramid-b9407996975e3504f2518359640139ab51fa9c38.zip
fix #297
-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')])