diff options
| author | Chris McDonough <chrism@plope.com> | 2011-09-29 01:45:46 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-09-29 01:45:46 -0400 |
| commit | b9407996975e3504f2518359640139ab51fa9c38 (patch) | |
| tree | 8a17f18f318561f4fcc2a18fa64c8da1541be8eb | |
| parent | bdfb877ab4c7c2ea9f1e9fe6aacd1865612c86cc (diff) | |
| download | pyramid-b9407996975e3504f2518359640139ab51fa9c38.tar.gz pyramid-b9407996975e3504f2518359640139ab51fa9c38.tar.bz2 pyramid-b9407996975e3504f2518359640139ab51fa9c38.zip | |
fix #297
| -rw-r--r-- | pyramid/tests/test_mako_templating.py | 3 |
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')]) |
