nixpkgs/pkgs/development/python-modules/pyramid_chameleon/test-renderers-pyramid-import.patch
Robert Scott 504e1284de pythonPackages.pyramid_chameleon: fix build by patching tests
looking into this part of the test suite it appears it started as a
modified copy of part of the main pyramid test suite. presumably this
line simply never got converted - change it to match the similar
imports.
2019-04-19 10:55:12 +01:00

11 lines
492 B
Diff

--- a/pyramid_chameleon/tests/test_renderers.py
+++ b/pyramid_chameleon/tests/test_renderers.py
@@ -258,7 +258,7 @@ class TestChameleonRendererLookup(unittest.TestCase):
self.assertRaises(ValueError, lookup.__call__, info)
def test___call__spec_alreadyregistered(self):
- from pyramid import tests
+ from pyramid_chameleon import tests
module_name = tests.__name__
relpath = 'test_renderers.py'
spec = '%s:%s' % (module_name, relpath)