Skip to content

Commit

Permalink
get rid of some deprecation warnings by using proper z.c API
Browse files Browse the repository at this point in the history
  • Loading branch information
philikon committed Apr 19, 2006
1 parent 0ab7308 commit 4708705
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_interfaceutility.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,11 @@ def test_localsearchInterface_delegates_to_globalUtility(self):
[foo])

def test_query_get_Utility_delegates_to_global(self):
gsm = zope.component.getGlobalSiteManager()
gsm.provideUtility(IInterface, Foo("global"))
gsm.provideUtility(IInterface, Foo("global bob"), name="bob")
zope.component.provideUtility(Foo("global"), IInterface)
zope.component.provideUtility(Foo("global bob"), IInterface,
name="bob")

gsm = zope.component.getGlobalSiteManager()
sm = zope.component.getSiteManager(self.rootFolder)
self.assert_(gsm != sm)

Expand Down

0 comments on commit 4708705

Please sign in to comment.