diff options
| author | Chris McDonough <chrism@plope.com> | 2010-11-17 00:44:33 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-11-17 00:44:33 -0500 |
| commit | 991a26169252e498e8e0576fc6d88514624b72d3 (patch) | |
| tree | 02d64f960ed596af5c5045c35b6c4747a32d7a6c | |
| parent | 1e00f3a5f3a1ae01999f99d412a35ec46abc827c (diff) | |
| download | pyramid-991a26169252e498e8e0576fc6d88514624b72d3.tar.gz pyramid-991a26169252e498e8e0576fc6d88514624b72d3.tar.bz2 pyramid-991a26169252e498e8e0576fc6d88514624b72d3.zip | |
fix test for jython
| -rw-r--r-- | pyramid/tests/test_renderers.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pyramid/tests/test_renderers.py b/pyramid/tests/test_renderers.py index 1dab39a6e..4c1971d04 100644 --- a/pyramid/tests/test_renderers.py +++ b/pyramid/tests/test_renderers.py @@ -137,10 +137,8 @@ class TestTemplateRendererFactory(unittest.TestCase): }) result = self._callFUT(info, factory) self.failUnless(result is renderer) - path = os.path.abspath(__file__) - if path.endswith('pyc'): # pragma: no cover - path = path[:-1] - self.assertEqual(factory.path, path) + path = os.path.abspath(__file__).split('$')[0] # jython + self.failUnless(factory.path.startswith(path)) self.assertEqual(factory.kw, {}) def test_reload_resources_true(self): |
