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' |