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

Unified Diff: tools/telemetry/telemetry/timeline/trace_event_importer_unittest.py

Issue 1458083003: [Telemetry + tools/perf] Modify the pylint disable message to use symbolic name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/telemetry/telemetry/timeline/thread.py ('k') | tools/telemetry/telemetry/util/color_histogram.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/timeline/trace_event_importer_unittest.py
diff --git a/tools/telemetry/telemetry/timeline/trace_event_importer_unittest.py b/tools/telemetry/telemetry/timeline/trace_event_importer_unittest.py
index ae4410dc3ad78e5360dbf8d58f6486d300f554cc..f69960b9c6b90533d3d87c5995f1087acda50101 100644
--- a/tools/telemetry/telemetry/timeline/trace_event_importer_unittest.py
+++ b/tools/telemetry/telemetry/timeline/trace_event_importer_unittest.py
@@ -251,7 +251,8 @@ class TraceEventTimelineImporterTest(unittest.TestCase):
m = timeline_model.TimelineModel(trace_data, shift_world_to_zero=False)
p = m.GetAllProcesses()[0]
t1 = p.threads[1]
- t1_thread_time_bounds = m._thread_time_bounds[t1] # pylint: disable=W0212
+ t1_thread_time_bounds = (
+ m._thread_time_bounds[t1]) # pylint: disable=protected-access
self.assertAlmostEqual(0.000, t1_thread_time_bounds.min)
self.assertAlmostEqual(0.003, t1_thread_time_bounds.max)
self.assertEqual(2, len(t1.all_slices))
@@ -265,7 +266,8 @@ class TraceEventTimelineImporterTest(unittest.TestCase):
self.assertAlmostEqual(0.003, slice_event.thread_duration)
t2 = p.threads[2]
- t2_thread_time_bounds = m._thread_time_bounds[t2] # pylint: disable=W0212
+ t2_thread_time_bounds = (
+ m._thread_time_bounds[t2]) # pylint: disable=protected-access
self.assertAlmostEqual(0.001, t2_thread_time_bounds.min)
self.assertAlmostEqual(0.002, t2_thread_time_bounds.max)
slice2 = FindEventNamed(t2.all_slices, 'c')
« no previous file with comments | « tools/telemetry/telemetry/timeline/thread.py ('k') | tools/telemetry/telemetry/util/color_histogram.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698