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

Unified Diff: third_party/typ/typ/tests/host_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/cmdline_test.py ('k') | third_party/typ/typ/tests/main_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/host_test.py
diff --git a/third_party/typ/typ/tests/host_test.py b/third_party/typ/typ/tests/host_test.py
index 8bb94f8b2f859a5f48e957996fc704a99e7cc180..50db37f5a146cdeaf56285caae5c77a6fcc90c3c 100644
--- a/third_party/typ/typ/tests/host_test.py
+++ b/third_party/typ/typ/tests/host_test.py
@@ -184,6 +184,14 @@ class TestHost(unittest.TestCase):
self.assertEqual(out, '')
self.assertIn(err, ('err\n', 'err\r\n'))
+ def test_call_inline(self):
+ h = self.host()
+ h.stdout = None
+ h.stderr = None
+ ret = h.call_inline([h.python_interpreter,
+ '-c', 'import sys; sys.exit(0)'])
+ self.assertEqual(ret, 0)
+
def test_add_to_path(self):
orig_sys_path = sys.path[:]
try:
@@ -196,3 +204,7 @@ class TestHost(unittest.TestCase):
self.assertNotEqual(sys.path, orig_sys_path)
finally:
sys.path = orig_sys_path
+
+ def test_platform(self):
+ h = self.host()
+ self.assertNotEqual(h.platform, None)
« no previous file with comments | « third_party/typ/typ/tests/cmdline_test.py ('k') | third_party/typ/typ/tests/main_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698