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

Unified Diff: expect_tests/type_definitions.py

Issue 560173002: Simplify objects passed to the result stage (Closed) Base URL: https://chromium.googlesource.com/infra/testing/expect_tests@subprocess
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 side-by-side diff with in-line comments
Download patch
« expect_tests/handle_list.py ('K') | « expect_tests/handle_list.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: expect_tests/type_definitions.py
diff --git a/expect_tests/type_definitions.py b/expect_tests/type_definitions.py
index da25f8a2535360e6fd33f50ac1a91cbd9fcb96f8..e947bb9f77afa4014eba3aaf73c8687fc3f3b575 100644
--- a/expect_tests/type_definitions.py
+++ b/expect_tests/type_definitions.py
@@ -151,6 +151,10 @@ class FuncCall(object):
_Test = namedtuple(
'Test', 'name func_call expect_dir expect_base ext covers breakpoints')
+class FakeTest(_Test):
+ """Like Test but without the hard-to-pickle stuff."""
+ pass
tandrii(chromium) 2014/09/12 17:27:03 maybe, this: class TestInfo(namedtuple('TestInfo'
+
class Test(_Test):
TEST_COVERS_MATCH = re.compile('.*/test/([^/]*)_test\.py$')
@@ -249,6 +253,12 @@ class Test(_Test):
_MultiTest = namedtuple(
'MultiTest', 'name make_ctx_call destroy_ctx_call tests atomic')
+
+class FakeMultiTest(_MultiTest):
dnj 2014/09/12 17:35:38 Is this used?
+ """Like MultiTest, without the hard-to-pickle stuff."""
+ pass
+
+
class MultiTest(_MultiTest):
"""A wrapper around one or more Test instances.
« expect_tests/handle_list.py ('K') | « expect_tests/handle_list.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698