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

Unified Diff: third_party/typ/typ/fakes/host_fake.py

Issue 664123005: Roll typ to v0.8.6 / re25b780b0b147580ef248c212b238446264d9d78 (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/__main__.py ('k') | third_party/typ/typ/host.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 3e8643ca6479a8cbf9f6c6e696330e829673a36d..5b9e46ddc2975c6b54e670307c3717a64df97215 100644
--- a/third_party/typ/typ/fakes/host_fake.py
+++ b/third_party/typ/typ/fakes/host_fake.py
@@ -166,6 +166,13 @@ class FakeHost(object):
if path not in self.dirs:
self.dirs.add(path)
+ def mktempfile(self, delete=True):
+ curno = self.current_tmpno
+ self.current_tmpno += 1
+ f = io.StringIO()
+ f.name = '__im_tmp/tmpfile_%u' % curno
+ return f
+
def mkdtemp(self, suffix='', prefix='tmp', dir=None, **_kwargs):
if dir is None:
dir = self.sep + '__im_tmp'
« no previous file with comments | « third_party/typ/typ/__main__.py ('k') | third_party/typ/typ/host.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698