Skip to content

Commit

Permalink
cleanup and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Feb 2, 2016
1 parent e5fd899 commit 7da4296
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ New:

Fixes:

- Skip the tests ``test_portalTypeToSchemaName_looks_up_portal_for_prefix`` and ``test_getAdditionalSchemata`` with isolation problems in Zope 4.
[pbauer]

- make utils/datify work with newer DateTime and pytz. Adjust tests to reflect
changes.
[jensens]
Expand Down
3 changes: 2 additions & 1 deletion plone/dexterity/tests/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from Products.CMFCore.interfaces import ISiteRoot
from pkg_resources import get_distribution
from plone.dexterity import schema
from plone.dexterity.fti import DexterityFTI
Expand All @@ -10,12 +9,14 @@
from plone.dexterity.schema import SCHEMA_CACHE
from plone.mocktestcase import MockTestCase
from plone.supermodel.model import Model
from Products.CMFCore.interfaces import ISiteRoot
from zope.interface import Interface
from zope.interface.interface import InterfaceClass

import unittest
import zope.schema


has_zope4 = get_distribution('Zope2').version.startswith('4')


Expand Down
8 changes: 2 additions & 6 deletions plone/dexterity/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# -*- coding: utf-8 -*-
from pkg_resources import get_distribution
from plone.dexterity import utils
from plone.dexterity.fti import DexterityFTI
from plone.mocktestcase import MockTestCase
from pkg_resources import get_distribution

import unittest


has_zope4 = get_distribution('Zope2').version.startswith('4')


Expand Down Expand Up @@ -50,16 +51,11 @@ class IBehaviorSchema(Interface):
self.mock_utility(behavior_mock, IBehavior, behavior_name)
self.mock_utility(fti_mock, IDexterityFTI, portal_type)

import zope.interface.registry
orig_getName = zope.interface.registry._getName
zope.interface._getName = lambda component: u''
self.mock_adapter(
provider_mock,
IFormFieldProvider,
(providedBy(IBehaviorInterface), )
)
#zope.interface._getName = orig_getName


self.replay()

Expand Down

0 comments on commit 7da4296

Please sign in to comment.