Chris McDonough
2012-05-19 6fa4b628ba2b0f10a5855cbd8e432c662e6131cb
backport from master of fix for zope.interface and warnings squashing see https://github.com/Pylons/pyramid/commit/c9888fcafe4b78924fc0f8b55c4730667bba8558
3 files modified
10 ■■■■ changed files
CHANGES.txt 4 ●●●● patch | view | raw | blame | history
pyramid/config/views.py 4 ●●●● patch | view | raw | blame | history
pyramid/tests/test_response.py 2 ●●●●● patch | view | raw | blame | history
CHANGES.txt
@@ -41,6 +41,10 @@
  backwards incompatibility when methods that declared only a request
  argument were used.  See https://github.com/Pylons/pyramid/issues/503
- Fix an incompatibility under Python 3.X with ``zope.interface`` 4.0.
  ``Symptom: TypeError: Class advice impossible in Python3.  Use the
  @provider class decorator instead.``
1.3b3 (2012-03-17)
==================
pyramid/config/views.py
@@ -5,9 +5,9 @@
from zope.interface import (
    Interface,
    classProvides,
    implementedBy,
    implementer,
    provider,
    )
from zope.interface.interfaces import IInterface
@@ -385,8 +385,8 @@
        return decorator(view)
@implementer(IViewMapper)
@provider(IViewMapperFactory)
class DefaultViewMapper(object):
    classProvides(IViewMapperFactory)
    def __init__(self, **kw):
        self.attr = kw.get('attr')
pyramid/tests/test_response.py
@@ -31,11 +31,13 @@
        path = self._getPath()
        r = self._makeOne(path, content_type='image/jpeg')
        self.assertEqual(r.content_type, 'image/jpeg')
        r.app_iter.close()
    def test_without_content_type(self):
        path = self._getPath()
        r = self._makeOne(path)
        self.assertEqual(r.content_type, 'text/plain')
        r.app_iter.close()
class TestFileIter(unittest.TestCase):
    def _makeOne(self, file, block_size):