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.
This commit is contained in:
parent
3464b50c61
commit
504e1284de
@ -16,6 +16,11 @@ buildPythonPackage rec {
|
|||||||
sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
|
sha256 = "d176792a50eb015d7865b44bd9b24a7bd0489fa9a5cebbd17b9e05048cef9017";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# https://github.com/Pylons/pyramid_chameleon/pull/25
|
||||||
|
./test-renderers-pyramid-import.patch
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
|
propagatedBuildInputs = [ chameleon pyramid zope_interface setuptools ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
--- 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)
|
Loading…
Reference in New Issue
Block a user