Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2352)

Unified Diff: tools/isolate/trace_inputs_test.py

Issue 10442068: Add more consitent exception generation and handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix small bug Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/isolate/trace_inputs.py ('k') | tools/isolate/trace_test_cases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/isolate/trace_inputs_test.py
diff --git a/tools/isolate/trace_inputs_test.py b/tools/isolate/trace_inputs_test.py
index 04761a9393337dcb38b865c33bbba6935f303c41..ccc03b25ac4c11b443d5441407ef293fec1ff573 100755
--- a/tools/isolate/trace_inputs_test.py
+++ b/tools/isolate/trace_inputs_test.py
@@ -170,8 +170,14 @@ if trace_inputs.get_flavor() == 'linux':
try:
self._load_context([], None)
self.fail()
- except AssertionError:
- pass
+ except trace_inputs.TracingFailure, e:
+ expected = (
+ 'Found internal inconsitency in process lifetime detection',
+ None,
+ None,
+ None,
+ [])
+ self.assertEquals(expected, e.args)
def test_close(self):
lines = [
« no previous file with comments | « tools/isolate/trace_inputs.py ('k') | tools/isolate/trace_test_cases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698