Index: components/test/data/password_manager/automated_tests/environment.py |
diff --git a/components/test/data/password_manager/automated_tests/environment.py b/components/test/data/password_manager/automated_tests/environment.py |
index f49efbd45555bbbb6ee63bc3ad18fa5b0caa869d..a8b5f9d03321a2d998dac41c2d1366da7c0c2fee 100644 |
--- a/components/test/data/password_manager/automated_tests/environment.py |
+++ b/components/test/data/password_manager/automated_tests/environment.py |
@@ -373,11 +373,10 @@ class Environment: |
self.ClearCache(True) |
websitetest.SuccessfulLoginTest() |
self.ClearCache(True) |
- except Exception: |
+ except Exception as e: |
successful = False |
- error = traceback.format_exc() |
self.tests_results.append(TestResult(websitetest.name, "normal", |
- successful, escape(error))) |
+ successful, e.message)) |
def PromptTestList(self, websitetests): |
@@ -397,11 +396,10 @@ class Environment: |
try: |
websitetest.was_run = True |
websitetest.PromptTest() |
- except Exception: |
+ except Exception as e: |
successful = False |
- error = traceback.format_exc() |
self.tests_results.append(TestResult(websitetest.name, "prompt", |
- successful, escape(error))) |
+ successful, e.message)) |
def Quit(self): |
"""Closes the tests.""" |