mirror of
https://github.com/denoland/deno.git
synced 2025-09-15 07:05:08 +00:00
Upgrade pylint (#2917)
depot_tools is removing pylint from its distribution so we must maintain our own copy.
This commit is contained in:
parent
ad11f2ad6a
commit
82dc1b8e59
14 changed files with 94 additions and 86 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue