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

Unified Diff: third_party/typ/typ/tests/cmdline_test.py

Issue 660133004: Roll typ to v0.8.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « third_party/typ/typ/tests/arg_parser_test.py ('k') | third_party/typ/typ/tests/host_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/tests/cmdline_test.py
diff --git a/third_party/typ/typ/tests/cmdline_test.py b/third_party/typ/typ/tests/cmdline_test.py
deleted file mode 100644
index fbb908c0e69b648e49e14f674b7223f67ebcd996..0000000000000000000000000000000000000000
--- a/third_party/typ/typ/tests/cmdline_test.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright 2014 Dirk Pranke. All rights reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import os
-import tempfile
-
-from typ import spawn_main
-from typ import test_case
-from typ import VERSION
-
-
-class TestSpawnMain(test_case.MainTestCase):
- def call(self, host, argv, stdin, env):
- out = err = None
- out_str = err_str = ''
- try:
- out = tempfile.NamedTemporaryFile(delete=False)
- err = tempfile.NamedTemporaryFile(delete=False)
- ret = spawn_main(argv, stdout=out, stderr=err)
- out.close()
- out_str = open(out.name).read()
- err.close()
- err_str = open(err.name).read()
- finally:
- if out:
- out.close()
- os.remove(out.name)
- if err:
- err.close()
- os.remove(err.name)
- return ret, out_str, err_str
-
- def test_version(self):
- self.check(['--version'], ret=0, out=VERSION + '\n')
« no previous file with comments | « third_party/typ/typ/tests/arg_parser_test.py ('k') | third_party/typ/typ/tests/host_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698