##// END OF EJS Templates
testing: add a `write_file` function...
marmoute -
r47747:52cee44a default
parent child Browse files
Show More
@@ -28,3 +28,8 b' def wait_file(path, timeout=10):'
28 if time.time() - start > timeout:
28 if time.time() - start > timeout:
29 raise RuntimeError(b"timed out waiting for file: %s" % path)
29 raise RuntimeError(b"timed out waiting for file: %s" % path)
30 time.sleep(0.01)
30 time.sleep(0.01)
31
32
33 def write_file(path, content=b''):
34 with open(path, 'wb') as f:
35 f.write(content)
General Comments 0
You need to be logged in to leave comments. Login now