From 82dc1b8e59891a7ca0f1a5e67a3db952b918561c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 11 Sep 2019 16:47:42 -0400 Subject: Upgrade pylint (#2917) depot_tools is removing pylint from its distribution so we must maintain our own copy. --- tools/util_test.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tools/util_test.py') diff --git a/tools/util_test.py b/tools/util_test.py index 4a545ff1c..b8098e463 100755 --- a/tools/util_test.py +++ b/tools/util_test.py @@ -8,18 +8,18 @@ from util import (parse_exit_code, shell_quote_win, parse_wrk_output, class TestUtil(DenoTestCase): def test_parse_exit_code(self): - assert 54 == parse_exit_code('hello_error54_world') - assert 1 == parse_exit_code('hello_error_world') - assert 0 == parse_exit_code('hello_world') + assert parse_exit_code('hello_error54_world') == 54 + assert parse_exit_code('hello_error_world') == 1 + assert parse_exit_code('hello_world') == 0 def test_shell_quote_win(self): - assert 'simple' == shell_quote_win('simple') - assert 'roof/\\isoprojection' == shell_quote_win( - 'roof/\\isoprojection') - assert '"with space"' == shell_quote_win('with space') - assert '"embedded""quote"' == shell_quote_win('embedded"quote') - assert '"a""b""""c\\d\\\\""e\\\\\\\\"' == shell_quote_win( - 'a"b""c\\d\\"e\\\\') + assert shell_quote_win('simple') == 'simple' + assert shell_quote_win( + 'roof/\\isoprojection') == 'roof/\\isoprojection' + assert shell_quote_win('with space') == '"with space"' + assert shell_quote_win('embedded"quote') == '"embedded""quote"' + assert shell_quote_win( + 'a"b""c\\d\\"e\\\\') == '"a""b""""c\\d\\\\""e\\\\\\\\"' def test_parse_wrk_output(self): f = open(os.path.join(root_path, "tools/testdata/wrk1.txt")) -- cgit v1.2.3