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

Unified Diff: third_party/typ/typ/fakes/host_fake.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/cmdline.py ('k') | third_party/typ/typ/fakes/tests/host_fake_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/typ/typ/fakes/host_fake.py
diff --git a/third_party/typ/typ/fakes/host_fake.py b/third_party/typ/typ/fakes/host_fake.py
index cb74d27544225dd8839f9bbf2bde09927e8861f3..3e8643ca6479a8cbf9f6c6e696330e829673a36d 100644
--- a/third_party/typ/typ/fakes/host_fake.py
+++ b/third_party/typ/typ/fakes/host_fake.py
@@ -40,6 +40,7 @@ class FakeHost(object):
self.stdin = io.StringIO()
self.stdout = io.StringIO()
self.stderr = io.StringIO()
+ self.platform = 'linux2'
self.env = {}
self.sep = '/'
self.dirs = set([])
@@ -89,6 +90,9 @@ class FakeHost(object):
self.cmds.append(argv)
return 0, '', ''
+ def call_inline(self, argv):
+ return self.call(argv)[0]
+
def chdir(self, *comps):
path = self.join(*comps)
if not path.startswith('/'):
« no previous file with comments | « third_party/typ/typ/cmdline.py ('k') | third_party/typ/typ/fakes/tests/host_fake_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698