File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
system_tests/app_engine/app Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 3333import urllib3 .contrib .appengine
3434import webapp2
3535
36+ FAILED_TEST_TMPL = """
37+ Test {} failed: {}
38+
39+ Stacktrace:
40+ {}
41+
42+ Captured output:
43+ {}
44+ """
3645TOKEN_INFO_URL = 'https://www.googleapis.com/oauth2/v3/tokeninfo'
3746EMAIL_SCOPE = 'https://www.googleapis.com/auth/userinfo.email'
3847HTTP = urllib3 .contrib .appengine .AppEngineManager ()
@@ -83,12 +92,9 @@ def run_test_func(func):
8392 func ()
8493 return True , ''
8594 except Exception as exc :
86- output = (
87- 'Test {} failed: {}\n \n '
88- 'Stacktrace:\n {}\n \n '
89- 'Captured output:\n {}' ).format (
90- func .func_name , exc , traceback .format_exc (),
91- capsys .getvalue ())
95+ output = FAILED_TEST_TMPL .format (
96+ func .func_name , exc , traceback .format_exc (),
97+ capsys .getvalue ())
9298 return False , output
9399
94100
You can’t perform that action at this time.
0 commit comments