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 0eb5d7f commit 6a1c08c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_zopepublication.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ def testAbortOrCommitTransaction(self):

def testAbortTransactionWithErrorReportingUtility(self):
# provide our fake error reporting utility
sm = zope.component.getGlobalSiteManager()
sm.provideUtility(IErrorReportingUtility, ErrorReportingUtility())
zope.component.provideUtility(ErrorReportingUtility())

class FooError(Exception):
pass
Expand Down

0 comments on commit 6a1c08c

Please sign in to comment.