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

Unified Diff: typ/tests/main_test.py

Issue 2322963004: Clean up formatting, rework run wrapper script to not use globals. (Closed)
Patch Set: update w/ review feedback, lint Created 4 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
« no previous file with comments | « typ/runner.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: typ/tests/main_test.py
diff --git a/typ/tests/main_test.py b/typ/tests/main_test.py
index 02993755ea62c52e45b972eb25586fde69fbe65b..75fb3354b096ccfbe7fe8e4a5067dbe40fdd4d77 100644
--- a/typ/tests/main_test.py
+++ b/typ/tests/main_test.py
@@ -18,7 +18,6 @@ import os
import sys
import textwrap
-
from typ import main
from typ import test_case
from typ import Host
@@ -142,15 +141,19 @@ SF_TEST_FILES = {'sf_test.py': SF_TEST_PY}
LOAD_TEST_PY = """
import unittest
+
class BaseTest(unittest.TestCase):
pass
+
def method_fail(self):
self.fail()
+
def method_pass(self):
pass
+
def load_tests(_, _2, _3):
setattr(BaseTest, "test_fail", method_fail)
setattr(BaseTest, "test_pass", method_pass)
« no previous file with comments | « typ/runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698