Index: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py |
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py |
index d3c8a5136e630fe8a933785af0b22a87b5a04bf2..2b81d2661c81a758e4c371d3d41d351e9e1210e8 100644 |
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py |
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py |
@@ -65,6 +65,7 @@ class FakePort(object): |
def path_to_generic_test_expectations_file(self): |
return '' |
+ |
class FakeFactory(object): |
def __init__(self, host, ports): |
self.host = host |
@@ -83,8 +84,7 @@ class LintTest(unittest.TestCase): |
def test_all_configurations(self): |
host = MockHost() |
host.ports_parsed = [] |
- host.port_factory = FakeFactory(host, (FakePort(host, 'a', 'path-to-a'), |
- FakePort(host, 'b', 'path-to-b'), |
+ host.port_factory = FakeFactory(host, (FakePort(host, 'a', 'path-to-a'), FakePort(host, 'b', 'path-to-b'), |
FakePort(host, 'b-win', 'path-to-b'))) |
logging_stream = StringIO.StringIO() |
@@ -113,7 +113,6 @@ class LintTest(unittest.TestCase): |
finally: |
lint_test_expectations.tear_down_logging(logger, handler) |
- |
def test_lint_test_files__errors(self): |
options = optparse.Values({'platform': 'test', 'debug_rwt_logging': False}) |
host = MockHost() |
@@ -196,6 +195,7 @@ class MainTest(unittest.TestCase): |
def test_exception(self): |
def exception_raising_lint(host, options): |
assert False |
+ |
lint_test_expectations.lint = exception_raising_lint |
res = lint_test_expectations.main([], self.stdout, self.stderr) |
self.assertEqual(res, lint_test_expectations.EXCEPTIONAL_EXIT_STATUS) |