Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 312647 Details for
Bug 417045
dev-python/manuel; new ebuild && requires zope content skipped in tests
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
the patch that skirts zope
manuel-1.6.0-rm_zope_test.patch (text/plain), 2.00 KB, created by
Ian Delaney (RETIRED)
on 2012-05-22 09:19:40 UTC
(
hide
)
Description:
the patch that skirts zope
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2012-05-22 09:19:40 UTC
Size:
2.00 KB
patch
obsolete
>diff -ur manuel-1.6.0.orig/src/manuel/tests.py manuel-1.6.0/src/manuel/tests.py >--- src/manuel/tests.py 2012-04-17 03:08:54.000000000 +0800 >+++ src/manuel/tests.py 2012-05-21 20:43:20.981722893 +0800 >@@ -9,16 +9,17 @@ > import os.path > import re > import unittest >-import zope.testing.renormalizing > > doctest = manuel.absolute_import('doctest') > > here = os.path.dirname(os.path.abspath(__file__)) > >-checker = zope.testing.renormalizing.RENormalizing([ >+try: >+ checker = zope.testing.renormalizing.RENormalizing([ > (re.compile(r"<unittest\.result\.TestResult"), '<unittest.TestResult'), > ]) >- >+except: >+ pass > > def turtle_on_the_bottom_test(): > """We use manuel to test itself. >@@ -52,7 +53,6 @@ > optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS > > m = manuel.ignore.Manuel() >- m += manuel.doctest.Manuel(optionflags=optionflags, checker=checker) > m += manuel.codeblock.Manuel() > m += manuel.capture.Manuel() > m += manuel.testcase.SectionManuel() >@@ -66,3 +66,6 @@ > suite, > doctest.DocTestSuite(), > )) >+ >+if __name__ == '__main__': >+ unittest.TextTestRunner().run(test_suite()) >diff -ur manuel-1.6.0.orig/src/manuel/index.txt manuel-1.6.0/src/manuel/index.txt >--- src/manuel/index.txt 2012-04-17 03:08:54.000000000 +0800 >+++ src/manuel/index.txt 2012-04-28 05:43:26.918993769 +0800 >@@ -166,16 +166,16 @@ > > .. code-block:: python > >- import os.path >- import manuel.testing >+ import os.path >+ import manuel.testing > >- class StripDirsTestCase(manuel.testing.TestCase): >- def shortDescription(self): >+ class StripDirsTestCase(manuel.testing.TestCase): >+ def shortDescription(self): > return os.path.basename(str(self)) >- suite = manuel.testing.TestSuite( >- m, path_to_test, TestCase=StripDirsTestCase) >+ suite = manuel.testing.TestSuite( >+ m, path_to_test, TestCase=StripDirsTestCase) > >- >>> list(suite)[0].shortDescription() >+ list(suite)[0].shortDescription() > 'bugs.txt' > >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 417045
:
312645
| 312647