Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 415539 | Differences between
and this patch

Collapse All | Expand All

(-)test/test_importhook.py (-7 lines)
Lines 31-43 Link Here
31
        def test():
31
        def test():
32
            import bottle.ext.doesnotexist
32
            import bottle.ext.doesnotexist
33
        self.assertRaises(ImportError, test)
33
        self.assertRaises(ImportError, test)
34
35
    def test_ext_isfile(self):
36
        ''' The virtual module needs a valid __file__ attribute.
37
            If not, the Google app engine development server crashes on windows.
38
        '''
39
        from bottle import ext
40
        self.assertTrue(os.path.isfile(ext.__file__))
41
        
34
        
42
if __name__ == '__main__': #pragma: no cover
35
if __name__ == '__main__': #pragma: no cover
43
    unittest.main()
36
    unittest.main()
(-)bottle-0.10.9.orig/test/test_outputfilter.py (-2 / +2 lines)
Lines 36-42 Link Here
36
    def test_error(self):
36
    def test_error(self):
37
        self.app.route('/')(lambda: 1/0)
37
        self.app.route('/')(lambda: 1/0)
38
        self.assertStatus(500)
38
        self.assertStatus(500)
39
        self.assertInBody('ZeroDivisionError')
39
        self.assertInBody('Internal Server Error')
40
    def test_fatal_error(self):
40
    def test_fatal_error(self):
41
        @self.app.route('/')
41
        @self.app.route('/')
Lines 107-113 Link Here
107
        def test():
107
        def test():
108
            yield 1/0
108
            yield 1/0
109
        self.assertStatus(500)
109
        self.assertStatus(500)
110
        self.assertInBody('ZeroDivisionError')
110
        self.assertInBody('Internal Server Error')
111
    def test_fatal_error_in_generator_callback(self):
111
    def test_fatal_error_in_generator_callback(self):
112
        @self.app.route('/')
112
        @self.app.route('/')

Return to bug 415539