Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 312667 Details for
Bug 417061
dev-python/testfixtures; requires zope content stripped for tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
the patch that skirts zope
testfixtures-2.3.4-adjust_tests.patch (text/plain), 1.06 KB, created by
Ian Delaney (RETIRED)
on 2012-05-22 09:52:29 UTC
(
hide
)
Description:
the patch that skirts zope
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2012-05-22 09:52:29 UTC
Size:
1.06 KB
patch
obsolete
>diff -ur testfixtures-2.3.4.orig/testfixtures/components.py testfixtures-2.3.4/testfixtures/components.py >--- testfixtures/components.py 2011-10-12 00:21:45.000000000 +0800 >+++ testfixtures/components.py 2012-05-21 19:04:54.676883008 +0800 >@@ -20,8 +20,11 @@ > atexit_setup = False > > def __init__(self): >- self.registry = Components('Testing') >- self.old = getSiteManager.sethook(lambda:self.registry) >+ try: >+ self.registry = Components('Testing') >+ self.old = getSiteManager.sethook(lambda:self.registry) >+ except: >+ pass > self.instances.add(self) > if not self.__class__.atexit_setup: > atexit.register(self.atexit) >@@ -33,7 +36,10 @@ > was in place before this :class:`TestComponents` was > instantiated. > """ >- getSiteManager.sethook(self.old) >+ try: >+ getSiteManager.sethook(self.old) >+ except: >+ pass > self.instances.remove(self) > > @classmethod >Only in testfixtures-2.3.4/testfixtures: __pycache__
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 417061
:
312665
| 312667