summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/tests/test_mako_templating.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pyramid/tests/test_mako_templating.py b/pyramid/tests/test_mako_templating.py
index 4d1c49863..85423b588 100644
--- a/pyramid/tests/test_mako_templating.py
+++ b/pyramid/tests/test_mako_templating.py
@@ -3,6 +3,9 @@
import unittest
from pyramid import testing
+import sys
+import os.path
+
class Base(object):
def setUp(self):
self.config = testing.setUp()
@@ -70,7 +73,10 @@ class Test_renderer_factory(Base, unittest.TestCase):
})
self._callFUT(info)
lookup = self.config.registry.getUtility(IMakoLookup)
- self.assertEqual(lookup.directories, ['a', 'b'])
+ module_path = os.path.dirname(sys.modules['__main__'].__file__)
+ self.assertEqual(lookup.directories, [
+ os.path.join(module_path, 'a'),
+ os.path.join(module_path, 'b')])
def test_with_module_directory_resource_spec(self):
import os