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

Side by Side Diff: expect_tests/type_definitions.py

Issue 556243006: Fixed refactoring error (Closed) Base URL: https://chromium.googlesource.com/infra/testing/expect_tests@shebang
Patch Set: Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import inspect 5 import inspect
6 import os 6 import os
7 import re 7 import re
8 8
9 from collections import namedtuple 9 from collections import namedtuple
10 10
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 @staticmethod 323 @staticmethod
324 def expect_path(_ext=None): 324 def expect_path(_ext=None):
325 return None 325 return None
326 326
327 def get_info(self): 327 def get_info(self):
328 """Strips MultiTest instance of hard-to-pickle stuff 328 """Strips MultiTest instance of hard-to-pickle stuff
329 329
330 Returns a MultiTestInfo instance. 330 Returns a MultiTestInfo instance.
331 """ 331 """
332 all_tests = [test.get_restricted() for test in self.tests] 332 all_tests = [test.get_info() for test in self.tests]
333 test = MultiTestInfo(name=self.name, 333 test = MultiTestInfo(name=self.name,
334 tests=all_tests, 334 tests=all_tests,
335 atomic=self.atomic 335 atomic=self.atomic
336 ) 336 )
337 return test 337 return test
338 338
339 339
340 class Handler(object): 340 class Handler(object):
341 """Handler object. 341 """Handler object.
342 342
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 print 'UNHANDLED:', obj 451 print 'UNHANDLED:', obj
452 return Failure() 452 return Failure()
453 453
454 def finalize(self, aborted): 454 def finalize(self, aborted):
455 """Called after __call__() has been called for all results. 455 """Called after __call__() has been called for all results.
456 456
457 @param aborted: True if the user aborted the run. 457 @param aborted: True if the user aborted the run.
458 @type aborted: bool 458 @type aborted: bool
459 """ 459 """
460 pass 460 pass
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698